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

Update docker-compose.production.yml #2915

Closed
wants to merge 1 commit into from
Closed

Update docker-compose.production.yml #2915

wants to merge 1 commit into from

Conversation

Rovel
Copy link
Contributor

@Rovel Rovel commented Oct 9, 2018

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?

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'
Copy link
Member

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?

Copy link
Contributor Author

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. 😃

@arikfr
Copy link
Member

arikfr commented Jan 3, 2019

Closing this because of #3251.

@arikfr arikfr closed this Jan 3, 2019
@arikfr
Copy link
Member

arikfr commented Jan 3, 2019

Thank you for your effort though!

@Rovel
Copy link
Contributor Author

Rovel commented Jan 4, 2019

U'r welcome, great project by the way!
Do you think that would be nice in the prod docker-compose persist the env var settings?
For example, if my container have some problem and I need to restart them I just lost a lot of stuff that I configured there, so I'm thinking of 2 options:

  1. Persist a volume (Maybe bad, mostly because they'r env vars)
  2. Have all those env vars in the docker-compose.prod (make sense a pr for this? adding a .env and adding it on the docker-compose, but first split secrets from configs)

Do you have another good suggestion on that?

@arikfr
Copy link
Member

arikfr commented Jan 7, 2019

Environment variables settings are passed using the env_file configured in https://github.com/getredash/redash/blob/master/setup/docker-compose.yml.

@Rovel
Copy link
Contributor Author

Rovel commented Jan 14, 2019

does make sense to split it in 2 files like
env_file_params
env_file_secrets
This way I persist params and keep secrets in a more easy to update flow

@arikfr
Copy link
Member

arikfr commented Jan 14, 2019

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.

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

Successfully merging this pull request may close these issues.

2 participants