-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
66 lines (58 loc) · 2.25 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.5'
services:
server:
image: ghcr.io/animo/animo-demo/server:main
deploy:
placement:
constraints:
- node.role == worker
- node.labels.type == community
labels:
traefik.enable: 'true'
# AFJ Rest agent inbound transport
traefik.http.routers.didcomm-demo.rule: Host(`didcomm.demo.animo.id`)
traefik.http.routers.didcomm-demo.entrypoints: web-secure
traefik.http.routers.didcomm-demo.tls.certresolver: zerossl
traefik.http.routers.didcomm-demo.service: didcomm-demo-service
traefik.http.services.didcomm-demo-service.loadbalancer.server.port: 5001
# AFJ Rest API
traefik.http.routers.server-demo.rule: Host(`server.demo.animo.id`) && (PathPrefix(`/`) || PathPrefix(`/agent`) || PathPrefix(`/oob`) || PathPrefix(`/connections`) || PathPrefix(`/demo`) || PathPrefix(`/server/last-reset`) || PathPrefix(`/credentials`) || PathPrefix(`/proofs`) || PathPrefix(`/public`))
traefik.http.routers.server-demo.entrypoints: web-secure
traefik.http.routers.server-demo.tls.certresolver: zerossl
traefik.http.routers.server-demo.service: server-demo-service
traefik.http.services.server-demo-service.loadbalancer.server.port: 5000
environment:
AGENT_WALLET_KEY: ${AGENT_WALLET_KEY}
AGENT_ENDPOINT: https://didcomm.demo.animo.id
AGENT_PUBLIC_DID_SEED: ${AGENT_PUBLIC_DID_SEED}
networks:
- traefik
ports:
- '5000'
- '5001'
client:
image: ghcr.io/animo/animo-demo/client:main
deploy:
placement:
constraints:
- node.role == worker
- node.labels.type == community
labels:
traefik.enable: 'true'
traefik.http.routers.client-demo.rule: Host(`demo.animo.id`)
traefik.http.routers.client-demo.entrypoints: web-secure
traefik.http.routers.client-demo.tls.certresolver: zerossl
traefik.http.routers.client-demo.service: client-demo-service
traefik.http.services.client-demo-service.loadbalancer.server.port: 80
update_config:
monitor: 30s
delay: 10s
order: start-first
ports:
- 80
networks:
- traefik
networks:
traefik:
external: true
name: traefik