load env variables directly from docker compose

This commit is contained in:
La macchina desiderante 2024-05-17 12:02:55 +02:00
parent 5a149ebe26
commit 5245125097
2 changed files with 7 additions and 3 deletions

View File

@ -2,4 +2,6 @@ node_modules
.git .git
.gitignore .gitignore
.next .next
package-lock.json package-lock.json
.env

View File

@ -20,8 +20,10 @@ services:
ports: ports:
- "8069:3000" - "8069:3000"
env_file: .env environment:
- ENABLE_REDIS=true
- REDIS_URL=redis://redis:6379
redis: redis:
image: redis:alpine image: redis:alpine
container_name: redis container_name: redis