mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
update compose
This commit is contained in:
parent
78c755fcfa
commit
f62fc236cd
@ -2,6 +2,7 @@ version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: fastapi-sqlalchemy-asyncpg_app
|
||||
build: .
|
||||
env_file:
|
||||
- .env
|
||||
@ -20,11 +21,12 @@ services:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: fastapi-sqlalchemy-asyncpg_db
|
||||
build:
|
||||
context: ./db
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- fastapi_postgres_data:/var/lib/postgresql/data
|
||||
env_file:
|
||||
- .env
|
||||
- .secrets
|
||||
@ -42,4 +44,4 @@ services:
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
fastapi_postgres_data:
|
Loading…
x
Reference in New Issue
Block a user