-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsveltekit-staff.yml
30 lines (28 loc) · 1.07 KB
/
sveltekit-staff.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
version: '3.3'
services:
sveltekit-staff:
image: ghcr.io/colognex/openmerce-staff-sveltekit:master
networks:
- traefik-public
deploy:
placement:
constraints:
- node.role == worker
replicas: 3
restart_policy:
condition: on-failure
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.sveltekit-staff.rule=Host(`staff.${DOMAIN?Variable not set}`)
- traefik.http.routers.sveltekit-staff.entrypoints=http
- traefik.http.routers.sveltekit-staff.middlewares=https-redirect
- traefik.http.routers.sveltekit-staff-https.rule=Host(`staff.${DOMAIN?Variable not set}`)
- traefik.http.routers.sveltekit-staff-https.entrypoints=https
- traefik.http.routers.sveltekit-staff-https.tls=true
- traefik.http.routers.sveltekit-staff-https.tls.certresolver=le
- traefik.http.services.sveltekit-staff.loadbalancer.server.port=3000
networks:
traefik-public:
external: true