-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.docker.example
More file actions
32 lines (27 loc) · 1.35 KB
/
Copy path.env.docker.example
File metadata and controls
32 lines (27 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Optional overrides for `docker compose up`.
#
# Copy to `.env` (compose reads it automatically) to customise. Every value
# below already has a working default baked into docker-compose.yml, so an
# empty/absent .env still gives you a fully functioning local stack.
#
# NOTE: DATABASE_URL / REDIS_URL / PISTON_URL are NOT listed here — inside the
# compose network they must point at the service names (postgres, redis,
# piston), so they are hardcoded in the compose file rather than made
# overridable by accident.
# Signs guest JWTs. CHANGE THIS for anything reachable from the internet.
JWT_SECRET=dev-secret-change-me-in-production
# Comma-separated origins the API and ws-server accept.
CORS_ORIGINS=http://localhost:3001
# How many submissions the judge runs in parallel.
JUDGE_CONCURRENCY=4
# The URLs the BROWSER uses to reach the backend. These get inlined into the
# client bundle at image-build time, so change them before `--build` if you are
# deploying somewhere other than localhost.
NEXT_PUBLIC_API_URL=http://localhost:4001
NEXT_PUBLIC_WS_URL=ws://localhost:4002/ws
# Host ports for the infra containers. Only used for poking at them from the
# host — the app services always reach them over the compose network. Remap
# these if you already run Postgres/Redis/Piston locally, e.g. REDIS_PORT=6380.
POSTGRES_PORT=5432
REDIS_PORT=6379
PISTON_PORT=2000