migrate to nextjs
This commit is contained in:
@@ -6,26 +6,16 @@ services:
|
||||
- "3000"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.mb-grid-solutions.rule=Host(`mb-grid-solutions.com`) || Host(`www.mb-grid-solutions.com`)"
|
||||
- "traefik.http.routers.mb-grid-solutions.rule=(Host(`mb-grid-solutions.com`) || Host(`www.mb-grid-solutions.com`))"
|
||||
- "traefik.http.routers.mb-grid-solutions.entrypoints=websecure"
|
||||
- "traefik.http.routers.mb-grid-solutions.tls.certresolver=le"
|
||||
- "traefik.http.services.mb-grid-solutions.loadbalancer.server.port=3000"
|
||||
- "traefik.http.routers.mb-grid-solutions.middlewares=auth@docker"
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "const http = require('http'); const options = { host: '127.0.0.1', port: 3000, path: '/health', timeout: 2000 }; const request = http.request(options, (res) => { if (res.statusCode === 200) { process.exit(0); } else { process.exit(1); } }); request.on('error', (err) => { process.exit(1); }); request.end();"]
|
||||
test: ["CMD", "node", "-e", "fetch('http://localhost:3000/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))"]
|
||||
interval: 5s
|
||||
timeout: 2s
|
||||
retries: 10
|
||||
deploy:
|
||||
replicas: 2
|
||||
update_config:
|
||||
order: start-first
|
||||
failure_action: rollback
|
||||
delay: 5s
|
||||
rollback_config:
|
||||
parallelism: 1
|
||||
order: stop-first
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
networks:
|
||||
- infra
|
||||
|
||||
|
||||
Reference in New Issue
Block a user