mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-07-26 12:08:15 +00:00
20 lines
2.7 KiB
YAML
20 lines
2.7 KiB
YAML
services: # Top-level key defining all containers in this Compose file
|
|
koala-sync: # Name of the KoalaSync service
|
|
image: ghcr.io/shik3i/koalasync:latest # Pulls the latest KoalaSync image from GitHub Container Registry
|
|
container_name: KoalaSync # Sets a fixed container name instead of an auto-generated one
|
|
restart: always # Always restart the container if it stops or if Docker starts
|
|
environment: # Environment variables passed into the container
|
|
- TZ=Europe/Berlin # Sets the timezone inside the container
|
|
- PORT=3000 # Port KoalaSync listens on inside the container
|
|
- MIN_VERSION=1.0.0 # Minimum client version allowed to connect
|
|
- MAX_ROOMS=100 # Maximum number of rooms that can exist
|
|
- MAX_PEERS_PER_ROOM=25 # Maximum number of peers allowed per room
|
|
- SERVER_SALT=CHANGE_ME_GENERATE_WITH_OPENSSL_RAND_BASE64_32 # Required: unique random salt for room-password hashes
|
|
- ADMIN_METRICS_TOKEN= # Optional: 32+ char random token for aggregate-only /health metrics
|
|
pids_limit: 2048 # Limits the container to 2048 process IDs for safety
|
|
networks: # Attaches the service to the networks listed below
|
|
- caddy_net # Joins the pre-existing Caddy network for reverse proxying
|
|
networks: # Top-level networks definition
|
|
caddy_net: # Network name as referenced by the service
|
|
external: true # Marks the network as managed outside of Compose (created by Caddy)
|