This commit is contained in:
26
docker-compose.yaml
Normal file
26
docker-compose.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
image: gitea.infra.mintel.me/mintel/mb-grid-solutions:latest
|
||||
restart: always
|
||||
expose:
|
||||
- "3000"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.mb-grid-solutions.rule=Host(`mb-grid-solutions.com`, `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"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:3000/health"]
|
||||
interval: 5s
|
||||
timeout: 2s
|
||||
retries: 10
|
||||
deploy:
|
||||
replicas: 2
|
||||
networks:
|
||||
- alpha
|
||||
|
||||
networks:
|
||||
alpha:
|
||||
external: true
|
||||
Reference in New Issue
Block a user