Skip to content

Commit 4ac6390

Browse files
Shaun Mahonyclaude
andcommitted
Merge branch 'claude/inspiring-mccarthy': fix docker-compose env_file
Picks up the fix for ADMIN_PASSWORD not being passed to containers: docker-compose now reads user config (ADMIN_PASSWORD, PUBLIC_URL, SMTP_*) from web/.env.local via env_file instead of shell substitution. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2 parents 7067c0c + 3f8cde9 commit 4ac6390

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

web/docker/docker-compose.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@ services:
55
dockerfile: web/docker/Dockerfile
66
ports:
77
- "3000:3000"
8+
env_file:
9+
- path: ../.env.local
10+
required: false
811
environment:
912
- MONGODB_URI=mongodb://mongodb:27017/stamp
1013
- REDIS_URL=redis://redis:6379
11-
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-changeme}
1214
- STAMP_BINARY=/app/stamp
1315
- SCORE_DISTS_DIR=/app/ScoreDists
1416
- JOBS_DATA_DIR=/app/data/jobs
1517
- NODE_ENV=production
16-
- SMTP_HOST=${SMTP_HOST:-}
17-
- SMTP_PORT=${SMTP_PORT:-587}
18-
- SMTP_USER=${SMTP_USER:-}
19-
- SMTP_PASS=${SMTP_PASS:-}
20-
- SMTP_FROM=${SMTP_FROM:[email protected]}
21-
- PUBLIC_URL=${PUBLIC_URL:-http://localhost:3000}
2218
depends_on:
2319
mongodb:
2420
condition: service_started
@@ -32,18 +28,15 @@ services:
3228
build:
3329
context: ../..
3430
dockerfile: web/docker/Dockerfile.worker
31+
env_file:
32+
- path: ../.env.local
33+
required: false
3534
environment:
3635
- MONGODB_URI=mongodb://mongodb:27017/stamp
3736
- REDIS_URL=redis://redis:6379
3837
- STAMP_BINARY=/app/stamp
3938
- SCORE_DISTS_DIR=/app/ScoreDists
4039
- JOBS_DATA_DIR=/app/data/jobs
41-
- SMTP_HOST=${SMTP_HOST:-}
42-
- SMTP_PORT=${SMTP_PORT:-587}
43-
- SMTP_USER=${SMTP_USER:-}
44-
- SMTP_PASS=${SMTP_PASS:-}
45-
- SMTP_FROM=${SMTP_FROM:[email protected]}
46-
- PUBLIC_URL=${PUBLIC_URL:-http://localhost:3000}
4740
depends_on:
4841
mongodb:
4942
condition: service_started

0 commit comments

Comments
 (0)