-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 1.43 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
32
33
34
35
36
37
38
39
40
version: '3.6'
services:
panel:
image: ${CONTAINER_IMAGE}
networks:
- traefik-public
configs:
- source: panel-config
target: /usr/share/nginx/html/assets/js/config.js
deploy:
placement:
constraints:
- node.labels.${ENVIRONMENT} == true
mode: replicated
replicas: 1
update_config:
parallelism: 1
order: start-first
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.${STACK_NAME}-panel-http.entrypoints=http
- traefik.http.routers.${STACK_NAME}-panel-http.rule=Host(`${DOMAIN?Variable not set}`)
- traefik.http.routers.${STACK_NAME}-panel-http.service=${STACK_NAME}-panel
- traefik.http.routers.${STACK_NAME}-panel-http.middlewares=https-redirect
- traefik.http.routers.${STACK_NAME}-panel.entrypoints=https
- traefik.http.routers.${STACK_NAME}-panel.rule=Host(`${DOMAIN?Variable not set}`)
- traefik.http.routers.${STACK_NAME}-panel.service=${STACK_NAME}-panel
- traefik.http.routers.${STACK_NAME}-panel.tls=true
- traefik.http.routers.${STACK_NAME}-panel.tls.certresolver=le
- traefik.http.services.${STACK_NAME}-panel.loadbalancer.server.port=80
networks:
traefik-public:
external: true
configs:
panel-config:
name: ${STACK_NAME}-config.js
external: true