Chemical-Curation / chemcurator_django

Backend services for chemical curation
https://api.chemreg.epa.gov
MIT License
1 stars 0 forks source link

290 docker compose #302

Closed michael-barbour closed 3 years ago

michael-barbour commented 3 years ago

closes #290

If you're using the developer setup postgres db you will probably have to docker rm -f postgresql and rebuild. If you want to use the pgadmin you may have to do the same.

Most of this ticket was ensuring I understood how the docker-compose file will allow for interactions on a developer set-up as well as for a production set-up. There will be changes to the wiki that accompany this. Please use those as a guide for how to set up the docker environment.

The docker-compose file now first pulls in .env file in the root of the repo and then replaces it with container specific overrides using the env_file and environment. This means even if a variable is not defined in the environment section, it will still get passed into the django instance if it is defined on the .env file.

Wiki Changes

mwfrost commented 3 years ago

The wiki article: https://github.com/Chemical-Curation/chemcurator_django/wiki/Deploying-with-Docker

tbnorth commented 3 years ago

This gets the docker-compose.yml out of the wiki back into the filesystem, with some variable cleanup.