forked from njofce/zk-chat
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-aws.yaml
87 lines (82 loc) · 2.02 KB
/
docker-compose-aws.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
version: '3.1'
services:
mongo:
image: mongo:5.0.4-focal
restart: always
ports:
- 27017:27017
volumes:
- ./mongo-db:/data/db
networks:
- dbnetwork
redis:
image: redis:6.2.6-alpine
ports:
- 6379:6379
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
- ./redis-data:/data
networks:
- dbnetwork
rln-chat-server:
image: 490752553772.dkr.ecr.eu-central-1.amazonaws.com/zk-chat-api:latest
pull_policy: always
container_name: api
ports:
- "8080:8080"
- "8081:8081"
restart: always
expose:
- 8080
- 8081
environment:
- REDIS_HOSTNAME=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=password
- REDIS_CHANNEL=nodeSync
- INTERREP_BASE_URL=https://api.thegraph.com/subgraphs/name/interrep/kovan
- INTERREP_V2=https://api.pcd-passport.com
- DB_CONNECTION_STRING=mongodb://mongo:27017/test
- SERVER_PORT=8080
- SOCKET_SERVER_PORT=8081
- MERKLE_TREE_LEVELS=16
- SPAM_TRESHOLD=1
- EPOCH_ALLOWED_DELAY_THRESHOLD=100
- INTERREP_SYNC_INTERVAL_SECONDS=20
- RLN_IDENTIFIER=518137101
- MESSAGES_CHANNEL=messages
- MESSAGES_BROADCAST_CHANNEL=message-broadcast
- UPDATES_CHANNEL=updates
depends_on:
- mongo
- redis
networks:
- apinetwork
- dbnetwork
rln-chat-client:
image: 490752553772.dkr.ecr.eu-central-1.amazonaws.com/zk-chat-client:latest
pull_policy: always
container_name: client
ports:
- "3000:3000"
expose:
- 3000
restart: always
environment:
- PORT=3000
- REACT_APP_SERVER_HOST=https://api.zkchat.org
- REACT_APP_SOCKET_HOST=wss://api-wss.zkchat.org
- REACT_APP_ENV=https://zkchat.org
depends_on:
- mongo
- redis
- rln-chat-server
networks:
- apinetwork
networks:
dbnetwork:
driver: bridge
internal: true
apinetwork:
driver: bridge