name: mangabom services: web: image: nginx:stable-alpine restart: unless-stopped ports: - "8080:80" volumes: - ./dist:/usr/share/nginx/html:ro - ./deploy/nginx-server.conf:/etc/nginx/conf.d/default.conf:ro depends_on: library: condition: service_healthy healthcheck: test: ["CMD", "wget", "-q", "-O", "-", "http://127.0.0.1/healthz"] interval: 30s timeout: 5s retries: 3 logging: driver: json-file options: max-size: "10m" max-file: "3" library: image: node:24-alpine restart: unless-stopped user: "65534:65534" read_only: true cap_drop: [ALL] security_opt: ["no-new-privileges:true"] environment: MANGA_ROOT: /manga PORT: "8000" command: ["node", "/app/library-server.cjs"] volumes: - ./dist/manga:/manga:ro - ./deploy/library-server.cjs:/app/library-server.cjs:ro healthcheck: test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:8000/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"] interval: 10s timeout: 5s retries: 5 start_period: 10s logging: driver: json-file options: max-size: "5m" max-file: "2" public: image: cloudflare/cloudflared:latest profiles: [public] restart: unless-stopped command: ["tunnel", "--no-autoupdate", "--url", "http://web:80"] depends_on: web: condition: service_healthy cap_drop: [ALL] security_opt: ["no-new-privileges:true"] logging: driver: json-file options: max-size: "5m" max-file: "2"