ctsit / redcap_external_module_development_guide

A resource for REDCap module development for REDCap admins and developers presented at https://ctsit.github.io/redcap_external_module_development_guide/
Other
8 stars 9 forks source link

Note need to restart docker containers to fix proxy #26

Open pbchase opened 4 years ago

pbchase commented 4 years ago

The phpmyadmin and mailhog interfaces become inaccessible for unknown reasons. accessing them returns a proxy error. restarting the docker-compose environment fixes the problem. i.e., do this:

docker-compose down && docker-compose up -d

Should we document this in the exercises? Maybe open an issue in redcap-docker-compose?

pbchase commented 4 years ago

The solution I proposed above is overkill. If you see a container is down, restart it. e.g., If my phpmyadmin container below were down

→ docker-compose ps
      Name                    Command               State                 Ports              
---------------------------------------------------------------------------------------------
rc935_cron         /entrypoint.sh                   Up                                       
rc935_db           docker-entrypoint.sh mysqld      Up      0.0.0.0:2935->3306/tcp, 33060/tcp
rc935_mailhog      /entrypoint.sh                   Up      1025/tcp, 0.0.0.0:4935->8025/tcp 
rc935_phpmyadmin   /docker-entrypoint.sh apac ...   Up      0.0.0.0:3935->80/tcp             
rc935_web          docker-php-entrypoint /etc ...   Up      0.0.0.0:1935->80/tcp 

I restart it with

docker restart rc935_phpmyadmin