forked from eco-stake/cosmos-directory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (62 loc) · 1.19 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
version: "3.3"
services:
app:
build: .
environment:
- APP_NAME=app
env_file:
- .env
ports:
- '3000:3000'
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules
depends_on:
- redis
chain-worker:
build: .
environment:
- APP_NAME=chain-worker
env_file:
- .env
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules
depends_on:
- redis
- app
validator-worker:
build: .
environment:
- APP_NAME=validator-worker
env_file:
- .env
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules
depends_on:
- redis
- app
block-worker:
build: .
environment:
- APP_NAME=block-worker
env_file:
- .env
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules
depends_on:
- redis
- app
redis:
image: redislabs/rejson:latest
restart: always
ports:
- '6379:6379'
command: redis-server --loadmodule /usr/lib/redis/modules/rejson.so --save 20 1 --loglevel warning
volumes:
- redis_data:/data
volumes:
node_modules:
redis_data: