diff --git a/docker-compose.yml b/docker-compose.yml index 25c4889..126f856 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,10 @@ services: POSTGRES_DB: mealsdb mealsapi: - image: registry.kmlabz.com/tormakris/meals_homework + image: registry.kmlabz.com/tormakris/meal_homework restart: always + depends_on: + - db environment: DATABASE_URI: "postgresql://mealsapi:meals@db:5432/mealsdb" ports: