diff --git a/docker-compose.yml b/docker-compose.yml index a87a3c2..c27bfae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: \ No newline at end of file + fastapi_postgres_data: \ No newline at end of file