when running sudo cht --url=https://medic:password@localhost --accept-self-signed-certs
on the command line, we get an error message Failed to get a response from https://medic:....
We have checked that both docker containers are running. What could be the issue?
How did you start your container - using the Local Environment docs where you ran docker-compose up and used the default ports (80 and 443) or did you follow the Docker Compose Helper steps where you used arbitrary ports (possibly 8443)?
Reviewing our instructions, I see we don’t instruct you to use the --detachflag, so first check if your containers are running with docker ps --format '{{.Names}}'. This should show you two containers medic-os and haproxy:
docker ps --format '{{.Names}}'
medic-os
haproxy
If don’t see those, then just run the docker compose up call where you downloaded your docker-compose.yml file where you downloaded it in step 1.
If you do see those containers, then I recommend restarting them. Run the docker-compose restart command in the same directory as your docker-compose.yml file. It should look like this:
Dear @mrjones,
Thank you, the containers are running and we have access.
Btw. we ran into some issues with the docker-compose file. The start of haproxy and medic-os was not synchronised, haproxy was faster if I remember well and then crashed because medic-os was not up. We fixed that with a ‘wait until’ option.