-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
37 lines (35 loc) · 1.39 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
36
37
services:
tease:
image: ghcr.io/ls1intum/tease:${TEASE_IMAGE_TAG:-latest}
container_name: tease
labels:
- "traefik.enable=true"
- "traefik.http.routers.tease.rule=Host(`${SERVER_HOST}`) && PathPrefix(`/tease`)"
- "traefik.http.middlewares.tease-stripprefix.stripprefix.prefixes=/tease"
- "traefik.http.routers.tease.middlewares=tease-stripprefix"
- "traefik.http.routers.tease.entrypoints=websecure"
- "traefik.http.routers.tease.tls.certresolver=letsencrypt"
expose:
- "80"
networks:
- prompt-network
tease-server:
image: ghcr.io/ls1intum/tease-server:${TEASE_IMAGE_TAG:-latest}
container_name: tease-server
labels:
- "traefik.enable=true"
- "traefik.http.routers.tease-server.rule=Host(`${SERVER_HOST}`) && PathPrefix(`/ws`)"
- "traefik.http.services.tease-server.loadbalancer.server.port=8081"
- "traefik.http.routers.tease-server.entrypoints=websecure"
- "traefik.http.routers.tease-server.tls.certresolver=letsencrypt"
- "traefik.http.middlewares.jwt.plugin.jwt.JwtQueryKey=token"
- "traefik.http.middlewares.jwt.plugin.jwt.PayloadFields=exp"
- "traefik.http.middlewares.jwt.plugin.jwt.Keys=${KEYCLOAK_JWK_SET_URI}"
- "traefik.http.routers.tease-server.middlewares=jwt"
expose:
- "8081"
networks:
- prompt-network
networks:
prompt-network:
external: true