acecalisto3 commited on
Commit
9dbdecc
1 Parent(s): 10e6340

Create docker-compose.yaml

Browse files
Files changed (1) hide show
  1. docker-compose.yaml +18 -0
docker-compose.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3'
2
+ services:
3
+ app:
4
+ build: .
5
+ ports:
6
+ - "8000:8000"
7
+ depends_on:
8
+ - db
9
+ environment:
10
+ - PYTHONUNBUFFERED=1
11
+ command: python app.py
12
+
13
+ db:
14
+ image: postgres
15
+ environment:
16
+ - POSTGRES_USER=myuser
17
+ - POSTGRES_PASSWORD=mypassword
18
+ - POSTGRES_DB=mydb