From f62fc236cd6c53e0f126c01be6b00181c4569609 Mon Sep 17 00:00:00 2001 From: Jakub Miazek Date: Fri, 3 Jun 2022 19:22:37 +0200 Subject: [PATCH] update compose --- docker-compose.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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