feat(docker): add webhook to auto-redeploy on master commit, remove old docker-related files
Build and deploy / deploy (push) Successful in 35s
Build and deploy / deploy (push) Successful in 35s
This commit is contained in:
+31
-5
@@ -1,11 +1,16 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
NEXT_PUBLIC_SUPABASE_URL: ${SUPABASE_URL}
|
||||
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${SUPABASE_ANON_KEY}
|
||||
image: node:22-alpine
|
||||
restart: unless-stopped
|
||||
working_dir: /app
|
||||
command: ["/entrypoint.sh"]
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3000
|
||||
HOSTNAME: 0.0.0.0
|
||||
volumes:
|
||||
- app-data:/app
|
||||
- ./docker/entrypoint.sh:/entrypoint.sh:ro
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.tribunal.rule=Host(`${APP_DOMAIN}`)"
|
||||
@@ -16,6 +21,27 @@ services:
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
webhook:
|
||||
build: ./docker/webhook
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
WEBHOOK_SECRET: ${WEBHOOK_SECRET}
|
||||
volumes:
|
||||
- app-data:/data
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.tribunal-webhook.rule=Host(`containers01.lan.alxczl.fr`) && PathPrefix(`/tribunal-webhook`)"
|
||||
- "traefik.http.routers.tribunal-webhook.tls.certresolver=voidca"
|
||||
- "traefik.http.routers.tribunal-webhook.entrypoints=https"
|
||||
- "traefik.http.routers.tribunal-webhook.middlewares=hsts-headers@file,tribunal-webhook-strip"
|
||||
- "traefik.http.middlewares.tribunal-webhook-strip.stripprefix.prefixes=/tribunal-webhook"
|
||||
- "traefik.http.services.tribunal-webhook.loadbalancer.server.port=9000"
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
volumes:
|
||||
app-data:
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user