feat: initial hello-world app with CI/CD pipeline
CI/CD Pipeline / lint-test (push) Failing after 2m5s
CI/CD Pipeline / build-push (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
host-db
2026-06-20 11:57:31 +02:00
parent 8c9bfb64e8
commit 354e691ceb
5 changed files with 139 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
services:
app:
image: registry.home: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