Add postgres
This commit is contained in:
parent
952c526e6c
commit
e7ab94491f
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@ -9,3 +8,12 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- ENV=production
|
- ENV=production
|
||||||
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
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