Add needed Segment environment variables

This commit is contained in:
Romain Sempé 2022-07-21 10:41:26 +02:00
parent 51feff632b
commit 5cef0e95c8
2 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,8 @@ services:
- LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET}
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
- LAGO_REDIS_CACHE_URL=redis://redis:6379
- SEGMENT_WRITE_KEY=${SEGMENT_WRITE_KEY}
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-true}
labels:
- "traefik.enable=true"
- "traefik.http.routers.api_http.rule=Host(`api.lago.dev`)"

View File

@ -56,6 +56,7 @@ services:
- LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET:-bucket}
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
- LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379}
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT}
ports:
- ${API_PORT:-3000}:3000
@ -98,6 +99,7 @@ services:
- LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET:-bucket}
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
- LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379}
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT}
api-clock:
container_name: lago-clock