-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
How to run by separating the environments #132
Comments
You will need to create two seperate services in Docker compose and set the env to prod or dev hardcoded |
@Eventyret So I split .env and hardcoded it. However, when docker compose build is running, a warning appears that variable is unreachable. So I checked in various ways, but there was nothing visible, and when I did docker compose --env-file .env.dev, I could not see this warning. .env
.env.dev
docker-compose-dev.yaml
dev.Dockerfile
warning message when building
|
I want to run both
dev
mode andprod
mode.Since I can select both in the env option when setting up the project, it seems that dockerize supports this.
However, docker compose yaml does not distinguish the env mode separately.
How can I run the server in prod mode? Can I just change build: . in the compose file to build: prod.Dockerfile ?
I would really appreciate it if you could guide me on this.
The text was updated successfully, but these errors were encountered: