Error handling for env variables in service

This commit is contained in:
2023-10-02 16:01:06 -04:00
parent a3462dad10
commit af065b3844
4 changed files with 35 additions and 9 deletions

View File

@@ -24,6 +24,10 @@ services:
container_name: weather-service
env_file:
- .env
environment:
- DATABASE_HOST: db
- SERVICE_HOST: service
- SERVICE_PORT: 5000
ports:
- "${SERVICE_PORT:-5000}:5000"
build: