alessfg / docker-ethercis

Docker environment for EtherCIS, an open source platform compatible with the OpenEHR standard
MIT License
8 stars 18 forks source link

docker-compose fails to create network names #1

Closed rcruicks closed 7 years ago

rcruicks commented 7 years ago

can you add a links subsection to docker-compose.yml in the app: section to establish a hostname link to the postgres server? links:

I'm pointing docker at the IBM Bluemix environment, and it seems to need specific links

alessfg commented 7 years ago

Container links are deprecated. The docker-compose.yml uses the default network bridge to connect the application container to the postgres container.

The issue probably lies in the IBM Bluemix environment already using the default network bridge. I will update the docker-compose.yml to use a different network in the next couple of days.

rcruicks commented 7 years ago

good point! it may be an issue in the docker-compose support on Bluemix - there is some doubt as to whether version 2 is fully supported. without the links: section, the app server had no host alias for the postgres machine so was unable to connect to the database. I'll dig into the compose support some more -