diff --git a/docker-compose.yml b/docker-compose.yml index 4ba2a1f..4717f40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,13 +2,11 @@ services: api: container_name: todo-api hostname: todo-api + depends_on: + - db build: . env_file: - api/.env - ports: - - "5000:5000" - #volumes: - #- ./api/test.db:/app/test.db db: container_name: db hostname: db