app-store/apps/it-tools/docker-compose.yml

37 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2023-03-28 22:43:44 +00:00
version: "3"
services:
it-tools:
container_name: it-tools
image: corentinth/it-tools:latest
ports:
- ${APP_PORT}:80
restart: unless-stopped
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.it-tools-web-redirect.redirectscheme.scheme: https
traefik.http.services.it-tools.loadbalancer.server.port: 80
# Web
traefik.http.routers.it-tools-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.it-tools-insecure.entrypoints: web
traefik.http.routers.it-tools-insecure.service: it-tools
traefik.http.routers.it-tools-insecure.middlewares: it-tools-web-redirect
# Websecure
2023-03-28 22:43:44 +00:00
traefik.http.routers.it-tools.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.it-tools.entrypoints: websecure
traefik.http.routers.it-tools.service: it-tools
traefik.http.routers.it-tools.tls.certresolver: myresolver
# Local domain
traefik.http.routers.it-tools-local-insecure.rule: Host(`it-tools.${LOCAL_DOMAIN}`)
traefik.http.routers.it-tools-local-insecure.entrypoints: web
traefik.http.routers.it-tools-local-insecure.service: it-tools
traefik.http.routers.it-tools-local-insecure.middlewares: it-tools-web-redirect
# Local domain secure
traefik.http.routers.it-tools-local.rule: Host(`it-tools.${LOCAL_DOMAIN}`)
traefik.http.routers.it-tools-local.entrypoints: websecure
traefik.http.routers.it-tools-local.service: it-tools
traefik.http.routers.it-tools-local.tls: true