-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (65 loc) · 2.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (65 loc) · 2.47 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
60
61
62
63
64
65
66
67
services:
db:
image: postgres:16-alpine
container_name: rcon-manager-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-rcon}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-rcon}
POSTGRES_DB: ${POSTGRES_DB:-rcon_manager}
volumes:
- rcon_manager_pgdata:/var/lib/postgresql/data
ports:
# Optional host access for tools / local uvicorn against Docker Postgres
- "${POSTGRES_PUBLISH_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 12
start_period: 10s
rcon-manager:
build: .
image: rcon-server-manager:local
container_name: rcon-manager
restart: unless-stopped
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"
environment:
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-change-me}
SECRET_KEY: ${SECRET_KEY:-dev-secret-change-me}
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-}
DATA_DIR: /data
SESSION_HTTPS_ONLY: ${SESSION_HTTPS_ONLY:-false}
# Build SQLAlchemy URL from these (see app.config). Optional full override:
# DATABASE_URL: postgresql+psycopg://user:pass@db:5432/rcon_manager
DATABASE_URL: ${DATABASE_URL:-}
POSTGRES_HOST: db
POSTGRES_PORT: "5432"
POSTGRES_USER: ${POSTGRES_USER:-rcon}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-rcon}
POSTGRES_DB: ${POSTGRES_DB:-rcon_manager}
DB_POOL_SIZE: ${DB_POOL_SIZE:-5}
DB_MAX_OVERFLOW: ${DB_MAX_OVERFLOW:-10}
STEAM_WEB_API_KEY: ${STEAM_WEB_API_KEY:-}
STEAM_API_KEY: ${STEAM_API_KEY:-}
# Email (SMTP host, credentials, sender, application URL) is configured in
# the app under Settings -> Email and stored in the database, so changing a
# relay does not need a redeploy.
RESET_TOKEN_TTL_MINUTES: ${RESET_TOKEN_TTL_MINUTES:-60}
INVITE_TOKEN_TTL_HOURS: ${INVITE_TOKEN_TTL_HOURS:-72}
# Cloudflare Turnstile - both must be set or it stays off
TURNSTILE_SITE_KEY: ${TURNSTILE_SITE_KEY:-}
TURNSTILE_SECRET: ${TURNSTILE_SECRET:-}
# Header with the real client IP when behind a proxy (e.g. CF-Connecting-IP).
# Empty = no proxy; use the TCP peer. See Settings -> Helpers.
CLIENT_IP_HEADER: ${CLIENT_IP_HEADER:-}
volumes:
# Encryption key file and optional local artifacts (SQL lives in Postgres)
- rcon_manager_data:/data
volumes:
rcon_manager_data:
rcon_manager_pgdata: