Skip to content

Commit

Permalink
move to tls traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
fachrihawari committed Nov 22, 2024
1 parent de1a503 commit 1b03c70
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ services:
- ${PORT}
environment:
PORT: ${PORT}
NEXT_PUBLIC_BASE_URL: "https://miit.hawari.dev"

NEXT_PUBLIC_BASE_URL: ${NEXT_PUBLIC_BASE_URL}
labels:
- "traefik.enable=true"
- "traefik.http.routers.miit.rule=Host(`miit.hawari.dev`)"
- "traefik.http.routers.miit.entrypoints=web"
- "traefik.http.routers.miit.rule=Host(`$NEXT_PUBLIC_BASE_URL`)"
- "traefik.http.routers.miit.entrypoints=websecure"
- "traefik.http.routers.miit.tls.certresolver=letsencryptresolver"
- "traefik.http.services.miit.loadbalancer.server.port=${PORT}"
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:${PORT}/api/heartbeat"]
interval: 5s
start_period: 5s
interval: 3600s
timeout: 5s
retries: 5
networks:
- traefik-network

networks:
traefik-network:
external: true
external: true

0 comments on commit 1b03c70

Please sign in to comment.