Skip to content

Commit

Permalink
Set compose db port through env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoMoreta committed Apr 4, 2024
1 parent 64a33c7 commit 4bcc827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
db:
image: postgres:13
ports:
- "5432:5432"
- "${DB_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
Expand Down

0 comments on commit 4bcc827

Please sign in to comment.