New commit with working container containing functional flask running
This commit is contained in:
18
compose.yml
Normal file
18
compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
flask:
|
||||
build: .
|
||||
ports:
|
||||
- "5001:5000"
|
||||
environment:
|
||||
DATABASE_URL: postgresql://postgres:postgres@db:5432/flaskdb
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: flaskdb
|
||||
ports:
|
||||
- "5432:5432"
|
||||
Reference in New Issue
Block a user