dev-resources.site
for different kinds of informations.
Did you know docker-compose only takes environment variables from`.env` only?
Published at
6/11/2023
Categories
discuss
docker
compose
env
Author
Mohamad Ashraful Islam
Recently I have encountered an issue with docker compose
. I have separated the environment files and declared todocker-compose.yaml
like following,
env_file:
- .dev_env
When I ran docker compose up
, it was not working on the compose itself but the container. because of environment variables. Then I found following solution for this.
docker compose --env-file .dev_env --env-file .prod_env up
Articles
12 articles in total
Did you know docker-compose only takes environment variables from`.env` only?
currently reading
Windows is not that bad for software development
read article
FastAPI Streaming Response
read article
Introduction to Scylla DB
read article
Python Unit Testing
read article
Introduction to API Gateway
read article
Horizontal vs Vertical Scaling
read article
Django GenericForeignKey with GenericRelation
read article
Python __future__ module
read article
Do you use python virtualenv inside Docker at production?
read article
Docker for Local Development
read article
Introduction to Docker
read article
Featured ones: