From 812df45465ae2d73a248e8a9db791532b43e165a Mon Sep 17 00:00:00 2001 From: flima Date: Fri, 21 Aug 2026 01:03:29 -0300 Subject: [PATCH] Add trek/docker-compose.yaml --- trek/docker-compose.yaml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 trek/docker-compose.yaml diff --git a/trek/docker-compose.yaml b/trek/docker-compose.yaml new file mode 100644 index 0000000..a8f25a1 --- /dev/null +++ b/trek/docker-compose.yaml @@ -0,0 +1,43 @@ +services: + app: + image: mauriceboe/trek:latest + container_name: trek + read_only: true + security_opt: + - no-new-privileges:true + cap_drop: + - ALL + cap_add: + - CHOWN + - SETUID + - SETGID + tmpfs: + - /tmp:noexec,nosuid,size=64m + ports: + - "4000:3000" + environment: + - NODE_ENV=production + - PORT=3000 + - ENCRYPTION_KEY=${ENCRYPTION_KEY:-} # generate with: openssl rand -hex 32 + - TZ=${TZ:-UTC} + - LOG_LEVEL=${LOG_LEVEL:-info} + - ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-} + - APP_URL=${APP_URL:-} # required for OIDC + email links + - FORCE_HTTPS=true # behind a TLS-terminating proxy + # - TRUST_PROXY=1 + # - OIDC_ISSUER=https://auth.example.com + # - OIDC_CLIENT_ID=trek + # - OIDC_CLIENT_SECRET=supersecret + # - OIDC_DISPLAY_NAME=SSO + # - OIDC_ADMIN_CLAIM=groups + # - OIDC_ADMIN_VALUE=app-trek-admins + volumes: + - ./data:/app/data + - ./uploads:/app/uploads + restart: unless-stopped + healthcheck: + test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 15s \ No newline at end of file