Skip to content

Commit

Permalink
reverted enviornment_name
Browse files Browse the repository at this point in the history
  • Loading branch information
anasnadeemws committed Apr 8, 2024
1 parent 44803b2 commit 452a65c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ DB_HOSTNAME=localhost
DB_PORT=3306
DB_USERNAME=
DB_PASSWORD=
DB_ROOT_PASSWORD=
# Additional Configuration
REDIS_URL=redis://localhost:6379/
SENTRY_DSN=
Expand All @@ -14,5 +15,5 @@ OTEL_RESOURCE_ATTRIBUTES=
OTEL_EXPORTER_OTLP_ENDPOINT=
OTEL_EXPORTER_OTLP_HEADERS=
OTEL_EXPORTER_OTLP_PROTOCOL=
# Advance Usage - Docker Configuration
DB_ROOT_PASSWORD=
# Docker Configuration
ENVIRONMENT_NAME=
6 changes: 4 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ services:
restart: always
container_name: fast-api-app
env_file:
- ./.env.local
- ./.env.${ENVIRONMENT_NAME}
depends_on:
wait-for-db:
condition: service_completed_successfully
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
environment:
ENVIRONMENT_NAME: "${ENVIRONMENT_NAME}"
networks:
- fast-api-network

Expand All @@ -60,7 +62,7 @@ services:
dockerfile: Dockerfile
command: ['celery', '-A', 'app.app.celery', 'worker', '-l', 'info']
env_file:
- .env.local
- .env.${ENVIRONMENT_NAME}
depends_on:
- redis
- app
Expand Down

0 comments on commit 452a65c

Please sign in to comment.