-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.two-backends.yaml
99 lines (92 loc) · 2.44 KB
/
docker-compose.two-backends.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.8"
services:
webserver:
restart: unless-stopped
depends_on:
- backend-1
- backend-2
- auth-server
image: did-auth-proxy-webserver
pull_policy: never
build:
context: nginx
volumes:
- ./nginx/nginx.two-backends.conf:/opt/bitnami/nginx/conf/server_blocks/nginx.conf
ports:
- "127.0.0.1:8080:80"
networks:
backend:
backend-1:
restart: unless-stopped
image: did-auth-proxy-backend
pull_policy: never
build:
context: backend-server
environment:
BACKEND_INSTANCE_ID: backend-1
networks:
backend:
backend-2:
restart: unless-stopped
image: did-auth-proxy-backend
pull_policy: never
build:
context: backend-server
environment:
BACKEND_INSTANCE_ID: backend-2
networks:
backend:
auth-server:
depends_on:
- redis
restart: unless-stopped
image: did-auth-proxy-auth-server
pull_policy: build
build:
context: authorization-server
environment:
- LOG_LEVEL=info
- PORT=80
- RPC_URL=https://volta-rpc.energyweb.org/
- CACHE_SERVER_URL=https://identitycache-dev.energyweb.org/v1
- CACHE_SERVER_LOGIN_PRVKEY=eab5e5ccb983fad7bf7f5cb6b475a7aea95eff0c6523291b0c0ae38b5855459c
- DID_REGISTRY_ADDRESS=0xc15d5a57a8eb0e1dcbe5d88b8f9a82017e5cc4af
- ENS_REGISTRY_ADDRESS=0xd7CeF70Ba7efc2035256d828d5287e2D285CD1ac
- ENS_RESOLVER_ADDRESS=0xcf72f16Ab886776232bea2fcf3689761a0b74EfE
- IPFS_PROTOCOL=https
- IPFS_HOST=ipfs.infura.io
- IPFS_PORT=5001
- IPFS_PROJECTID=<put-your-value-here>
- IPFS_PROJECTSECRET=<put-your-value-here>
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=redis
- JWT_SECRET=asecretstring
- ACCEPTED_ROLES=
- INCLUDE_ALL_ROLES=true
- JWT_ACCESS_TTL=3600
- JWT_REFRESH_TTL=86400
- BLOCKNUM_AUTH_ENABLED=true
- SIWE_NONCE_TTL=120
- SELF_BASE_URL=http://127.0.0.1:8080
- AUTH_COOKIE_NAME_ACCESS_TOKEN=token
- AUTH_COOKIE_NAME_REFRESH_TOKEN=refreshToken
- AUTH_COOKIE_ENABLED=false
- AUTH_COOKIE_SECURE=true
networks:
backend:
redis:
image: bitnami/redis:latest
restart: unless-stopped
ports:
- '127.0.0.1:6379:6379'
environment:
- REDIS_PASSWORD=redis
networks:
backend:
volumes:
- redis-data:/bitnami/redis/data
volumes:
redis-data:
networks:
backend: