app-store/apps/sshwifty/docker-compose.yml

37 lines
1.6 KiB
YAML

version: "3.5"
services:
sshwifty:
image: niruix/sshwifty:0.3.11-beta-release
restart: unless-stopped
container_name: sshwifty
privileged: true
ports:
- ${APP_PORT}:8182
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.sshwifty-web-redirect.redirectscheme.scheme: https
traefik.http.services.sshwifty.loadbalancer.server.port: 8182
# Web
traefik.http.routers.sshwifty-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.sshwifty-insecure.entrypoints: web
traefik.http.routers.sshwifty-insecure.service: sshwifty
traefik.http.routers.sshwifty-insecure.middlewares: sshwifty-web-redirect
# Websecure
traefik.http.routers.sshwifty.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.sshwifty.entrypoints: websecure
traefik.http.routers.sshwifty.service: sshwifty
traefik.http.routers.sshwifty.tls.certresolver: myresolver
# Local domain
traefik.http.routers.sshwifty-local-insecure.rule: Host(`sshwifty.${LOCAL_DOMAIN}`)
traefik.http.routers.sshwifty-local-insecure.entrypoints: web
traefik.http.routers.sshwifty-local-insecure.service: sshwifty
traefik.http.routers.sshwifty-local-insecure.middlewares: sshwifty-web-redirect
# Local domain secure
traefik.http.routers.sshwifty-local.rule: Host(`sshwifty.${LOCAL_DOMAIN}`)
traefik.http.routers.sshwifty-local.entrypoints: websecure
traefik.http.routers.sshwifty-local.service: sshwifty
traefik.http.routers.sshwifty-local.tls: true