Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
el634dev authored Oct 6, 2024
1 parent fa67886 commit 7186114
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
image: postgres
environment:
- POSTGRES_DB=sqlalchemy
- POSTGRES_USER=sqlalchemy
- POSTGRES_PASSWORD=sqlalchemy
- POSTGRES_USER=os.getenv("POSTGRES_USER")
- POSTGRES_PASSWORD=os.getenv("POSTGRES_PASSWORD")
web:
build: .
command: python app.py
command: python app.py --host=0.0.0.0
volumes:
- .:/code
- ./data:/data/db
ports:
- "8000:8000"
- "5000:5000"
- "5432:5432"
depends_on:
- db

0 comments on commit 7186114

Please sign in to comment.