-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
50 lines (48 loc) · 1.64 KB
/
compose.yml
File metadata and controls
50 lines (48 loc) · 1.64 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
services:
db:
image: postgres:16-alpine
container_name: voltius-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-voltius}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-voltius}
POSTGRES_DB: ${POSTGRES_DB:-voltius}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-voltius} -d ${POSTGRES_DB:-voltius}"]
interval: 2s
timeout: 5s
retries: 10
server:
image: ghcr.io/voltiusapp/voltius-server:latest
container_name: voltius-server
restart: unless-stopped
ports:
- "${HOST_PORT:-14372}:8080"
environment:
DATABASE_URL: ${DATABASE_URL:-postgres://${POSTGRES_USER:-voltius}:${POSTGRES_PASSWORD:-voltius}@db/${POSTGRES_DB:-voltius}}
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET is required — generate one with `openssl rand -hex 32`}
PORT: "8080"
RUST_LOG: ${RUST_LOG:-info}
# Optional knobs — see .env.example
RESEND_API_KEY: ${RESEND_API_KEY:-}
CORS_ORIGINS: ${CORS_ORIGINS:-}
TRUSTED_PROXY_IP: ${TRUSTED_PROXY_IP:-}
SYNC_RATE_LIMIT: ${SYNC_RATE_LIMIT:-}
REGISTER_RATE_LIMIT: ${REGISTER_RATE_LIMIT:-}
INVITE_RATE_LIMIT: ${INVITE_RATE_LIMIT:-}
WAITLIST_RATE_LIMIT: ${WAITLIST_RATE_LIMIT:-}
# Only needed if you also run the admin dashboard.
ADMIN_SECRET: ${ADMIN_SECRET:-}
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/health || exit 1"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
depends_on:
db:
condition: service_healthy
volumes:
pgdata: