-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-production.yml
27 lines (26 loc) · 1.09 KB
/
docker-compose-production.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: "3.9"
services:
static:
image: ${REGISTRY}/svodd-static:${IMAGE_TAG}
networks:
- traefik-public
- default
deploy:
placement:
constraints: [ node.labels.worker == frontend-1 ]
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.svodd-static.rule=Host(`static.svodd.ru`)
- traefik.http.services.svodd-static.loadBalancer.server.port=80
- traefik.http.middlewares.svodd-static-redirect.redirectRegex.regex=^(https?://)static.svodd.ru/(.*)$$
- traefik.http.middlewares.svodd-static-redirect.redirectRegex.replacement=$${1}static.svodd.ru/$${2}
- traefik.http.middlewares.svodd-static-redirect.redirectRegex.permanent=true
- traefik.http.routers.svodd-static.middlewares=cabinet-redirect,secure-headers
- traefik.http.routers.svodd-static.entryPoints=https
- traefik.http.routers.svodd-static.tls=true
- traefik.http.routers.svodd-static.tls.certResolver=letsEncrypt
networks:
traefik-public:
name: traefik-public
external: true