-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (57 loc) · 2.37 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (57 loc) · 2.37 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Single `docker compose up -d` from a clean clone brings up Postgres + the app.
# Convention (matches the rest of the MAC Suite): POSTGRES_USER / _PASSWORD / _DB
# all = mac_hackathon. In production these come from Dokploy env, not this file.
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: mac_hackathon
POSTGRES_PASSWORD: mac_hackathon
POSTGRES_DB: mac_hackathon
volumes:
- db_data:/var/lib/postgresql/data
# The app waits for this healthcheck before running migrations.
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mac_hackathon -d mac_hackathon"]
interval: 3s
timeout: 3s
retries: 20
# Exposed for local psql/drizzle-kit; not needed by the app (same network).
# Host port 5433 to avoid colliding with a local Postgres on 5432.
ports:
- "5433:5432"
app:
build: .
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgres://mac_hackathon:mac_hackathon@db:5432/mac_hackathon
PORT: "3000"
NODE_ENV: production
# mac-auth: JWTs verified locally against JWKS. Override in Dokploy.
MAC_AUTH_URL: ${MAC_AUTH_URL:-https://auth.monashcoding.com}
MAC_AUTH_JWKS_URL: ${MAC_AUTH_JWKS_URL:-https://auth.monashcoding.com/api/auth/jwks}
ORGANISER_ROLES: ${ORGANISER_ROLES:-committee,exec,admin}
PUBLIC_URL: ${PUBLIC_URL:-http://localhost:3000}
# Humanitix ticket sync (stage 3). Read-only, club-owned key from Dokploy.
HUMANITIX_API_KEY: ${HUMANITIX_API_KEY:-}
HUMANITIX_API_BASE: ${HUMANITIX_API_BASE:-https://api.humanitix.com/v1}
FORCE_TICKET_SYNC: ${FORCE_TICKET_SYNC:-}
TICKET_SYNC_REVOKE_THRESHOLD: ${TICKET_SYNC_REVOKE_THRESHOLD:-0.20}
DISCORD_ALERT_WEBHOOK_URL: ${DISCORD_ALERT_WEBHOOK_URL:-}
# Notion content sync (stage 2).
NOTION_API_KEY: ${NOTION_API_KEY:-}
NOTION_PRIZES_DB_ID: ${NOTION_PRIZES_DB_ID:-}
NOTION_JUDGES_DB_ID: ${NOTION_JUDGES_DB_ID:-}
NOTION_SCHEDULE_DB_ID: ${NOTION_SCHEDULE_DB_ID:-}
NOTION_SPONSORS_DB_ID: ${NOTION_SPONSORS_DB_ID:-}
NOTION_FAQ_DB_ID: ${NOTION_FAQ_DB_ID:-}
# Host port configurable (APP_PORT) so it won't collide with a local
# mac-auth on 3000. Container always listens on 3000.
ports:
- "${APP_PORT:-3000}:3000"
volumes:
db_data: