Add postgres
This commit is contained in:
parent
952c526e6c
commit
e7ab94491f
@ -1,4 +1,3 @@
|
||||
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
@ -9,3 +8,12 @@ services:
|
||||
environment:
|
||||
- ENV=production
|
||||
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
||||
db:
|
||||
image: postgres:13
|
||||
environment:
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: mydatabase
|
||||
ports:
|
||||
- "5432:5432"
|
||||
Loading…
x
Reference in New Issue
Block a user