version: '3.8' services: gitcitadel-online: image: silberengel/gitcitadel-online:latest container_name: gitcitadel-online restart: unless-stopped ports: # Expose port 2323 for Apache reverse proxy (maps to container port 8080) - "2323:8080" volumes: # Persist cache directory # Note: Ensure the host cache directory is writable by UID 1000 (node user) # Run: sudo chown -R 1000:1000 ./cache (or use 777 permissions) - ./cache:/app/cache # Optional: Mount config file to override defaults # - ./config.yaml:/app/config.yaml:ro # Optional environment variables (uncomment and set as needed): # environment: # - CONFIG_PATH=/app/config.yaml # - LOG_LEVEL=info healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s deploy: resources: limits: cpus: '1' memory: 512M