-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
31 lines (30 loc) · 1.07 KB
/
docker-compose.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
28
29
30
31
version: "3.6"
services:
client:
networks:
- traefik-public
- default
image: "${DOCKER_IMAGE_CLIENT-ncaclient}:${TAG-latest}"
build:
context: .
deploy:
replicas: 1
update_config:
parallelism: 1
order: start-first
failure_action: rollback
restart_policy:
window: 30s
condition: on-failure
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.${STACK_NAME}-client-https.entrypoints=https
- traefik.http.routers.${STACK_NAME}-client-https.tls=true
- traefik.http.routers.${STACK_NAME}-client-https.rule=(Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)) && (Path(`/latest.js`) || Path(`/latest.js.map`) || Path(`/latest-test.js`) || Path(`/latest-test.map.js`))
- traefik.http.middlewares.${STACK_NAME}-client-compress.compress=true
- traefik.http.services.${STACK_NAME}-client.loadbalancer.server.port=80
networks:
traefik-public:
external: true