mirror of
https://github.com/tronbyt/server.git
synced 2025-12-19 08:25:46 +01:00
28 lines
723 B
YAML
28 lines
723 B
YAML
services:
|
|
web:
|
|
image: ghcr.io/tronbyt/server:2 # latest v2.x.x release tag
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${SERVER_PORT:-8000}:8000" # Map server port on the host to port 8000 in the container
|
|
init: true
|
|
volumes:
|
|
- "/etc/localtime:/etc/localtime:ro" # used to sync docker with host time
|
|
- data:/app/data
|
|
environment:
|
|
- PUID=${UID:-1000}
|
|
- PGID=${GID:-${UID:-1000}}
|
|
- SYSTEM_APPS_REPO
|
|
- PRODUCTION
|
|
- ENABLE_USER_REGISTRATION
|
|
- SINGLE_USER_AUTO_LOGIN
|
|
- GITHUB_TOKEN
|
|
|
|
healthcheck:
|
|
test: ["CMD", "/app/tronbyt-server", "health"]
|
|
interval: 1m30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
volumes:
|
|
data:
|