-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
35 lines (32 loc) · 1.1 KB
/
docker-compose.prod.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
version: '3.8'
x-default-opts:
&default-opts
logging:
options:
max-size: '1m'
max-file: '3'
services:
nginx:
image: ghcr.io/uccser/cs-unplugged-classic:${CLASSIC_CS_UNPLUGGED_IMAGE_TAG}
deploy:
replicas: 1
update_config:
order: start-first
placement:
constraints:
- node.role==worker
- node.labels.role==apps
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.docker.network=uccser-public"
- "traefik.http.services.classic-cs-unplugged.loadbalancer.server.port=8080"
- "traefik.http.routers.classic-cs-unplugged.service=classic-cs-unplugged"
- "traefik.http.routers.classic-cs-unplugged.rule=Host(`${CLASSIC_CS_UNPLUGGED_DOMAIN}`)"
- "traefik.http.routers.classic-cs-unplugged.entryPoints=web"
networks:
- uccser-public
networks:
uccser-public:
external: true