feat: implement CI/CD workflows for Docker image build and deployment
Some checks failed
Deploy Production / deploy (push) Failing after 3m40s

This commit is contained in:
Frank John Begornia
2025-12-19 22:06:43 +08:00
parent da7c6e0cf6
commit 103101c5d9
5 changed files with 304 additions and 81 deletions

View File

@@ -20,7 +20,21 @@ services:
- NUXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${NUXT_PUBLIC_STRIPE_PUBLISHABLE_KEY}
- STRIPE_SECRET_KEY=${STRIPE_SECRET_KEY}
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.slipmatz-web.rule=Host(`${DOMAIN:-slipmatz.com}`)"
- "traefik.http.routers.slipmatz-web.entrypoints=websecure"
- "traefik.http.routers.slipmatz-web.tls=true"
- "traefik.http.routers.slipmatz-web.tls.certresolver=le"
- "traefik.http.services.slipmatz-web.loadbalancer.server.port=3000"
# HTTP to HTTPS redirect
- "traefik.http.routers.slipmatz-web-http.rule=Host(`${DOMAIN:-slipmatz.com}`)"
- "traefik.http.routers.slipmatz-web-http.entrypoints=web"
- "traefik.http.routers.slipmatz-web-http.middlewares=https-redirect"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
networks:
- traefik-public
- crew-app-net
- slipmatz-network
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
@@ -30,5 +44,9 @@ services:
start_period: 40s
networks:
traefik-public:
external: true
crew-app-net:
external: true
slipmatz-network:
driver: bridge