-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
59 lines (55 loc) · 1.22 KB
/
docker-compose.example.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
version: '2.2'
services:
wallet-mongo:
container_name: wallet-mongo
image: mongo
restart: always
command: --wiredTigerCacheSizeGB 6.0
volumes:
- wallet-mongodb-vol:/data/db
ports:
- 127.0.0.1:27017:27017
networks:
- services-tier
mem_limit: 6144m
wallet-node-api:
container_name: wallet-node-api
restart: always
depends_on:
- wallet-mongo
build:
context: .
dockerfile: Dockerfile
networks:
- services-tier
ports:
- $GLS_CONNECTOR_HOST:$GLS_CONNECTOR_PORT:$GLS_CONNECTOR_PORT
- $GLS_METRICS_API_HOST:$GLS_METRICS_API_PORT:$GLS_METRICS_API_PORT
env_file:
- .env
environment:
- GLS_ENABLE_READ_MODE=true
mem_limit: 2048m
cpus: 3
wallet-node-writer:
container_name: wallet-node-writer
restart: always
depends_on:
- wallet-mongo
build:
context: .
dockerfile: Dockerfile
networks:
- services-tier
ports:
- $GLS_CONNECTOR_HOST:$GLS_CONNECTOR_WRITER_PORT:$GLS_CONNECTOR_WRITER_PORT
environment:
- GLS_ENABLE_WRITE_MODE=true
env_file:
- .env
mem_limit: 2048m
cpus: 3
volumes:
wallet-mongodb-vol:
networks:
services-tier: