Update docker-compose
This commit is contained in:
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user