Files
sf-monitorizacion-health/deployment/develop/docker-compose.yaml
2026-05-04 16:29:27 +02:00

51 lines
1.7 KiB
YAML

name: sf-monitorizacion-health
networks:
savefamily:
external: true
proxy:
external: true
internal:
driver: bridge
services:
sf-monitorizacion-health:
container_name: sf-monitorizacion-health
image: sf-monitorizacion-health
build:
context: .
dockerfile: Dockerfile
args:
PORT: "${PORT:-3000}"
ports:
- ${PORT}:${PORT}
networks:
- internal
- savefamily
- proxy
env_file:
- .env
restart: unless-stopped
healthcheck:
test:
[
"CMD-SHELL",
"wget -q --spider http://127.0.0.1:${PORT:-3000}/health || exit 1",
]
interval: 60s
timeout: 5s
retries: 5
start_period: 15s
labels:
- "io.portainer.accesscontrol.teams=develop"
- "traefik.enable=true"
- "traefik.http.routers.sf-monitorizacion-health.entrypoints=web"
- "traefik.http.routers.sf-monitorizacion-health.rule=Host(`sf-monitorizacion-health.savefamilygps.net`)"
- "traefik.http.middlewares.sf-monitorizacion-health-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.sf-monitorizacion-health.middlewares=sf-monitorizacion-health-https-redirect"
- "traefik.http.routers.sf-monitorizacion-health-secure.entrypoints=websecure"
- "traefik.http.routers.sf-monitorizacion-health-secure.rule=Host(`sf-monitorizacion-health.savefamilygps.net`)"
- "traefik.http.routers.sf-monitorizacion-health-secure.tls=true"
- "traefik.http.routers.sf-monitorizacion-health-secure.service=sf-monitorizacion-health"
- "traefik.http.services.sf-monitorizacion-health.loadbalancer.server.port=${PORT}"
- "traefik.docker.network=proxy"