40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
# Tracearr All-in-One (Supervised) Deployment
|
|
#
|
|
# This compose file runs the supervised image which includes:
|
|
# - TimescaleDB (PostgreSQL 15)
|
|
# - Redis
|
|
# - Tracearr application
|
|
|
|
services:
|
|
tracearr:
|
|
image: ghcr.io/connorgallopo/tracearr:supervised-nightly
|
|
shm_size: 256mb # Required for PostgreSQL shared memory
|
|
ports:
|
|
- "${PORT:-3000}:3000"
|
|
environment:
|
|
- TZ=${TZ:-UTC}
|
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
|
# Optional: Override auto-generated secrets
|
|
# - JWT_SECRET=${JWT_SECRET}
|
|
# - COOKIE_SECRET=${COOKIE_SECRET}
|
|
volumes:
|
|
- tracearr_postgres:/data/postgres
|
|
- tracearr_redis:/data/redis
|
|
- tracearr_data:/data/tracearr
|
|
# Bind mount alternative (uncomment and adjust paths):
|
|
# - ./data/postgres:/data/postgres
|
|
# - ./data/redis:/data/redis
|
|
# - ./data/tracearr:/data/tracearr
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
start_period: 60s
|
|
retries: 3
|
|
|
|
volumes:
|
|
tracearr_postgres:
|
|
tracearr_redis:
|
|
tracearr_data:
|