Skip to content

Commit

Permalink
Use multiple env files to handle defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Jan 23, 2025
1 parent 91e18ef commit 84b6eef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
File renamed without changes.
12 changes: 9 additions & 3 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ services:
volumes:
- $LAGO_PATH/api:/app:delegated
env_file:
- .env.development
- path: ./.env.development.default
- path: ./.env.development
required: false
environment:
- DATABASE_TEST_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@db:5432/lago_test
- GOOGLE_AUTH_CLIENT_ID=${GOOGLE_AUTH_CLIENT_ID:-}
Expand Down Expand Up @@ -123,7 +125,9 @@ services:
volumes:
- $LAGO_PATH/api:/app:delegated
env_file:
- .env.development
- path: ./.env.development.default
- path: ./.env.development
required: false

api-events-worker:
<<: *api_worker
Expand Down Expand Up @@ -163,7 +167,9 @@ services:
volumes:
- $LAGO_PATH/api:/app:delegated
env_file:
- .env.development
- path: ./.env.development.default
- path: ./.env.development
required: false

pdf:
image: getlago/lago-gotenberg:7
Expand Down

0 comments on commit 84b6eef

Please sign in to comment.