Files
hello-world/docker-compose.prod.yml
host-db bca129f2dc
CI/CD Pipeline / lint-test (push) Failing after 1m8s
CI/CD Pipeline / build-push (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
fix: use docker gateway IP 172.17.0.1 for Gitea + registry
2026-06-20 17:48:03 +02:00

27 lines
774 B
YAML

services:
app:
image: 100.92.252.2:5000/admin/hello-world:${TAG:-latest}
restart: unless-stopped
networks:
- app-net
- traefik
environment:
- PORT=3000
labels:
- "traefik.enable=true"
- "traefik.http.routers.hello.rule=Host(`hello.home`)"
- "traefik.http.routers.hello.tls.certresolver=letsencrypt"
- "traefik.http.routers.hello.middlewares=sec-headers@file"
- "traefik.http.services.hello.loadbalancer.server.port=3000"
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', r => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 5s
retries: 3
networks:
app-net:
internal: true
traefik:
external: true