-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Update docker-compose.production.yml #2915
Conversation
just update docker-compose version I made myself a docker compose for my prod env that uses a RDS db so there is no need no manage a postgres container in prod. r u interested in another pr with this alternative prod env with instructions?
@@ -4,7 +4,7 @@ | |||
# Some other recommendations: | |||
# 1. To persist Postgres data, assign it a volume host location. | |||
# 2. Split the worker service to adhoc workers and scheduled queries workers. | |||
version: '2' | |||
version: '3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no change in functionality I wonder if maybe it's worth to keep it as "version: '2'" to have wider range of supported Docker Compose versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in your file there is no api change at all, v3 add more stuff to manage deploy and networking.
you can check it here:
https://docs.docker.com/compose/compose-file/compose-versioning/#upgrading
changing it adhoc after a clone back and forth is no brainer in this case, but housekeeping in my opinion is always good specially considering compose is in v3.7 already.
Aaaand considering this is a prod env, having the latest patch in the infra in your first deploy is a good practice, deploying a new prod server with outdated stuff must be avoided even knowning its a reality. 💅
but feel free reject this pr since is a easy change back and forth. 😃
Closing this because of #3251. |
Thank you for your effort though! |
U'r welcome, great project by the way!
Do you have another good suggestion on that? |
Environment variables settings are passed using the env_file configured in https://github.com/getredash/redash/blob/master/setup/docker-compose.yml. |
does make sense to split it in 2 files like |
I don't see a reason for this. But you're welcome to do in your setup whatever makes the most sense to you. This is just example configuration. |
just update docker-compose version
I made myself a docker compose for my prod env that uses a RDS db so there is no need no manage a postgres container in prod.
r u interested in another pr with this alternative prod env with instructions?