update compose

This commit is contained in:
Jakub Miazek 2022-06-03 19:22:37 +02:00
parent 78c755fcfa
commit f62fc236cd

View File

@ -2,6 +2,7 @@ version: '3'
services: services:
app: app:
image: fastapi-sqlalchemy-asyncpg_app
build: . build: .
env_file: env_file:
- .env - .env
@ -20,11 +21,12 @@ services:
- db - db
db: db:
image: fastapi-sqlalchemy-asyncpg_db
build: build:
context: ./db context: ./db
dockerfile: Dockerfile dockerfile: Dockerfile
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - fastapi_postgres_data:/var/lib/postgresql/data
env_file: env_file:
- .env - .env
- .secrets - .secrets
@ -42,4 +44,4 @@ services:
retries: 5 retries: 5
volumes: volumes:
postgres_data: fastapi_postgres_data: