Update docker-compose

This commit is contained in:
2026-07-03 08:06:26 +03:00
parent 66cbd8d88a
commit 1d729019f3
2 changed files with 11 additions and 9 deletions
+2
View File
@@ -47,6 +47,8 @@ SESSION_SECRET=a-long-random-secret
PUBLIC_URL=https://your-domain.example PUBLIC_URL=https://your-domain.example
``` ```
If a generated password or secret contains `$`, wrap the value in single quotes in `.env`, for example `SESSION_SECRET='abc$123'`. Docker Compose treats `$` as variable interpolation otherwise.
Start the app: Start the app:
```bash ```bash
+9 -9
View File
@@ -4,15 +4,15 @@ services:
ports: ports:
- "4000:4000" - "4000:4000"
environment: environment:
NODE_ENV: production - NODE_ENV=production
PORT: 4000 - PORT=4000
DATABASE_URL: file:/app/backend/data/app.db - DATABASE_URL=file:/app/backend/data/app.db
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-change-admin-password} - ADMIN_PASSWORD
STUDENT_PASSWORD: ${STUDENT_PASSWORD:-change-student-password} - STUDENT_PASSWORD
SESSION_SECRET: ${SESSION_SECRET:-change-this-long-random-secret} - SESSION_SECRET
PUBLIC_URL: ${PUBLIC_URL:-http://localhost:4000} - PUBLIC_URL
JUDGE_VIEWPORT_WIDTH: ${JUDGE_VIEWPORT_WIDTH:-800} - JUDGE_VIEWPORT_WIDTH=800
JUDGE_VIEWPORT_HEIGHT: ${JUDGE_VIEWPORT_HEIGHT:-600} - JUDGE_VIEWPORT_HEIGHT=600
volumes: volumes:
- frontend_judge_data:/app/backend/data - frontend_judge_data:/app/backend/data
restart: unless-stopped restart: unless-stopped