server-up/docker-compose.yml
2026-05-09 13:55:29 +00:00

32 lines
1.1 KiB
YAML

services:
server-up:
build: .
image: server-up:latest
container_name: server-up
hostname: server-up
user: "0:0"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- su-data:/data
# Same-path mount: pad binnen container = pad op host
# Wijzig BASE_DIR in .env om alle paden te verplaatsen
- ${BASE_DIR:-/opt/serverup}:${BASE_DIR:-/opt/serverup}
ports:
- "${PORT:-5000}:5000"
environment:
- PORT=5000
- HOME=/root
- SU_CONFIG=/data/config.json
- SU_AUDIT=/data/audit.db
- SU_GIT_CACHE=/data/git
- SU_CONTAINER=server-up
# Voeg eigen app-repos toe zonder wizard. Eenmalig opgeslagen in config.json.
# Format: JSON-array van repo-objecten. Velden: id, url, branch, subdir, name, token (optioneel).
# Voorbeeld:
# - SU_BOOT_REPOS=[{"id":"mijn-apps","name":"Mijn Apps","url":"https://github.com/gebruiker/mijn-apps.git","branch":"main","subdir":"apps"}]
# Debug-endpoints inschakelen (api/debug/*):
# - SU_DEBUG=1
restart: unless-stopped
volumes:
su-data: