-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stack.yml
22 lines (22 loc) · 999 Bytes
/
.stack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: '3.7'
services:
app:
image: ${APP_IMAGE}:${IMAGE_TAG}
deploy:
labels:
- traefik.enable=true
- traefik.http.middlewares.${APP_NAME}_domain_redirect1.redirectregex.regex=^https?://b1nman.davide(-|)perozzi.de/(.*)
- traefik.http.middlewares.${APP_NAME}_domain_redirect1.redirectregex.replacement=https://${APP_DOMAIN}/$${2}
- traefik.http.routers.${APP_NAME}.entrypoints=https
- traefik.http.routers.${APP_NAME}.middlewares=trim_www,${APP_NAME}_domain_redirect1
- traefik.http.routers.${APP_NAME}.rule=Host(`${APP_DOMAIN}`, `www.${APP_DOMAIN}`, `b1nman.davideperozzi.de`, `b1nman.davide-perozzi.de`)
- traefik.http.routers.${APP_NAME}.service=${APP_NAME}
- traefik.http.routers.${APP_NAME}.tls.certresolver=default1
- traefik.http.services.${APP_NAME}.loadbalancer.server.port=80
networks:
- default
- traefik-public
networks:
traefik-public:
external: true
name: traefik-public