Skip to content

Commit

Permalink
Fix: Loading environment from .env in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
katporks committed Nov 11, 2023
1 parent 36090d8 commit bbaf88e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ services:
- db
db:
image: postgres
env_file:
- .env
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data/
volumes:
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ services:
- db
db:
image: postgres
env_file:
- .env
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data/
volumes:
Expand Down

0 comments on commit bbaf88e

Please sign in to comment.