services: migrator: build: context: ../.. dockerfile: HrynCo.NotificationService.Migrator/Dockerfile environment: - App__ConnectionString=${CONNECTION_STRING} depends_on: db: condition: service_started restart: "no" api: build: context: ../.. dockerfile: HrynCo.NotificationService.Web/Dockerfile environment: - ASPNETCORE_ENVIRONMENT=Production - App__ConnectionString=${CONNECTION_STRING} depends_on: db: condition: service_started migrator: condition: service_completed_successfully worker: build: context: ../.. dockerfile: HrynCo.NotificationService.Worker/Dockerfile environment: - DOTNET_ENVIRONMENT=Production - App__ConnectionString=${CONNECTION_STRING} depends_on: db: condition: service_started migrator: condition: service_completed_successfully