Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose-prod.yml vs docker-compose.prod.yml #73

Closed
SPH73 opened this issue Dec 21, 2020 · 2 comments
Closed

docker-compose-prod.yml vs docker-compose.prod.yml #73

SPH73 opened this issue Dec 21, 2020 · 2 comments

Comments

@SPH73
Copy link

SPH73 commented Dec 21, 2020

I have some questions because deployment fails because there are no config vars picked up other than those set in heroku config vars manually
I bought v3.0 and v3.1 of the DFP books and there is a difference with regards to the volumes being left in on 3.1 but removed 3.0.
I realise no one else is having the same issue as no issue raised but I would like to understand better.

Next question: if using heroku.yml is it in place of docker-compose-prod.yml and therefore volumes left in the file isn't an issue?

What am I doing wrong or have I missed something?
In 3.0 ENVIRONMENT == 'production' but in 3.1 not inlcluded and ENVIRONMENT added to heroku manually doesn't pick up ENVIRONMENT in config.settings and django complains it is undefined as well, anyway.

Mainly my question is : How do the ENV vars in docker-compose-prod.yml get copied over or do I completely forget about the docker-compose files and add them myself i.e. Email settings, stripe keys etc?

Any comments would be appreciated because I urgently need to complete this step in the correct manner

@wsvincent
Copy link
Owner

Hi @SPH73,

I'm late in response but...

  • heroku.yml is needed for Docker images within Heroku https://devcenter.heroku.com/articles/build-docker-images-heroku-yml. It is Heroku-specific. The docker-compose-prod.yml file works for all Docker containers.
  • I understand your confusion around how the ENVs are copied over. You can either use the -f flag to force usage of the prod yml file or do what we did in the book which is use docker-compose-prod.yml to test production locally and then manually update the env vars within Heroku.

Thanks for your question.

@SPH73
Copy link
Author

SPH73 commented May 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants