Hosting > 3.x > Production Hosting - Docker
Hosting the CHT on self run infrastructure
docker compose.On your server copy the .crt and .key files to the medic-os container. The existing self signed .crt and .key files will be overwritten:
sudo docker cp /path/to/ssl.crt medic-os:/srv/settings/medic-core/nginx/private/default.crt
sudo docker cp /path/to/ssl.key medic-os:/srv/settings/medic-core/nginx/private/default.key
Now that the .crt and .key files are in place, restart nginx in the medic-os container with:
docker exec -it medic-os /boot/svc-restart medic-core nginx
To troubleshoot any problems with the new certificates, after running docker exec -it medic-os bash, the nginx log files can be found in /srv/storage/medic-core/nginx/logs/, including:
Hosting the CHT on self run infrastructure
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.