-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.3 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
version: "2.1"
services:
mongo:
container_name: mongo
image: mongo:4.0.6-xenial
restart: always
healthcheck:
test: mongo --eval 'db.getCollectionNames()'
interval: 2s
timeout: 2s
retries: 10
volumes:
- cyberway-mongodb-data:/data/db
ports:
- 127.0.0.1:27018:27017
networks:
- cyberway-net
nodeosd:
container_name: nodeosd
image: cyberway/cyberway:v2.1.1
depends_on:
mongo:
condition: service_healthy
command: /opt/cyberway/bin/nodeosd.sh --data-dir /opt/cyberway/bin/data-dir -e --http-alias=nodeosd:8888 --http-alias=127.0.0.1:8888 --http-alias=localhost:8888 --genesis-json /opt/cyberway/bin/genesis-data/genesis.json --genesis-data /opt/cyberway/bin/genesis-data/genesis.dat ${EXTRA_NODEOS_ARGS}
hostname: nodeosd
ports:
- 8888:8888
- 9876:9876
expose:
- "8888"
volumes:
- cyberway-nodeos-data:/opt/cyberway/bin/data-dir
- /etc/cyberway/config.ini:/opt/cyberway/bin/data-dir/config.ini
- /var/lib/cyberway/genesis-data:/opt/cyberway/bin/genesis-data
cap_add:
- IPC_LOCK
stop_grace_period: 10m
networks:
- cyberway-net
volumes:
cyberway-mongodb-data:
external: true
cyberway-nodeos-data:
external: true
networks:
cyberway-net: