add env_file for local vars in docker-compose

This commit is contained in:
Grant 2024-05-28 21:00:55 -06:00
parent ad1a785451
commit f567e7abd1
1 changed files with 2 additions and 4 deletions

View File

@ -10,12 +10,10 @@ services:
ports: ports:
- "3000:3000" - "3000:3000"
environment: environment:
- SESSION_SECRET=CHANGE ME TO RANDOM VALUE
- REDIS_HOST=redis://redis - REDIS_HOST=redis://redis
- DATABASE_URL=postgres://postgres@postgres/canvas - DATABASE_URL=postgres://postgres@postgres/canvas
- AUTH_ENDPOINT=https://auth.fediverse.events env_file:
- AUTH_CLIENT=canvas - .env.local
- AUTH_SECRET=${AUTH_SECRET}
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_healthy