-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.traefik.yml
30 lines (29 loc) · 1.28 KB
/
docker-compose.traefik.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.9"
services:
fedisearch-storage:
networks:
proxy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.fedisearch-storage.rule=Host(`${FEDISEARCH_DOMAIN}`)&&Path(`/api/graphql`)"
- "traefik.http.routers.fedisearch-storage.entrypoints=https"
- "traefik.http.routers.fedisearch-storage.tls=true"
- "traefik.http.routers.fedisearch-storage.tls.certresolver=letsencrypt"
- "traefik.http.routers.fedisearch-storage.tls.domains[0].main=${FEDISEARCH_DOMAIN}"
- "traefik.http.services.fedisearch-storage.loadbalancer.server.port=3000"
fedisearch-searcher:
networks:
proxy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.fedisearch-searcher.rule=Host(`${FEDISEARCH_DOMAIN}`)"
- "traefik.http.routers.fedisearch-searcher.entrypoints=https"
- "traefik.http.routers.fedisearch-searcher.tls=true"
- "traefik.http.routers.fedisearch-searcher.tls.certresolver=letsencrypt"
- "traefik.http.routers.fedisearch-searcher.tls.domains[0].main=${FEDISEARCH_DOMAIN}"
- "traefik.http.services.fedisearch-searcher.loadbalancer.server.port=3000"
networks:
# proxy network, where traefik is connected and where it looks for services
proxy:
external: true
name: proxy