-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-events.yml
115 lines (107 loc) · 3.33 KB
/
docker-compose-events.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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: "2.1"
services:
nats:
container_name: nats-streaming
image: nats-streaming:0.14.1-linux
restart: always
entrypoint: /nats-streaming-server -p 4222 -m 8222 --cluster_id=cyberway --user=${NATS_USER} --pass=${NATS_PASS} --config /config.conf
volumes:
- ${PWD}/nats/config.conf:/config.conf
- cyberway-nats-data:/opt/nats-streaming-data
ports:
- 0.0.0.0:4222:4222
- 127.0.0.1:8222:8222
networks:
- nats-net
cyberway-notifier:
container_name: cyberway-notifier
image: cyberway/cyberway-notifier:v2.1.0
restart: always
command: bash -c "exec /opt/cyberway/bin/cyber-notifier -s nats://${NATS_USER}:${NATS_PASS}@nats-streaming:4222"
volumes:
- cyberway-queue:/queue:ro
networks:
- nats-net
nats-exporter:
container_name: nats-exporter
image: cyberway/nats-exporter:latest
restart: always
command: -varz -http_pass=${NATS_PASS:?Can't start without auth variable NATS_PASS} -http_user=${NATS_USER:?Can't start without auth variable NATS_USER} "http://nats-streaming:8222"
ports:
- 7777:7777
networks:
- nats-net
mongo:
container_name: mongo
image: mongo:4.0.6-xenial
restart: always
healthcheck:
test: mongo --eval 'db.getCollectionNames()'
interval: 10s
timeout: 2s
retries: 10
volumes:
- cyberway-mongodb-data:/data/db
ports:
- 127.0.0.1:27018:27017
networks:
- cyberway-net
mongodb-exporter:
container_name: mongodb-exporter
image: cyberway/mongodb-exporter:${MONGODB_EXPORTER_TAG:-v0.6.2}
build:
context: ./mongodb-exporter/
dockerfile: Dockerfile
args:
tag: ${MONGODB_EXPORTER_TAG:-v0.6.2}
restart: always
depends_on:
mongo:
condition: service_healthy
ports:
- 9216:9216
environment:
- MONGODB_URI=mongodb://mongo:27017
- HTTP_AUTH=${MONGODB_EXPORTER_USER:?Can't start without auth variable MONGODB_EXPORTER_USER}:${MONGODB_EXPORTER_PASS:?Can't start without auth variable MONGODB_EXPORTER_PASS}
networks:
- cyberway-net
nodeosd:
container_name: nodeosd
image: cyberway/cyberway:v2.1.1
depends_on:
mongo:
condition: service_healthy
command: bash -c "exec /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 --plugin eosio::event_engine_plugin --event-engine-unix-socket /queue/msg.sock --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
- cyberway-queue:/queue
cap_add:
- IPC_LOCK
stop_grace_period: 10m
networks:
- cyberway-net
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
volumes:
cyberway-mongodb-data:
external: true
cyberway-nodeos-data:
external: true
cyberway-nats-data:
external: true
cyberway-queue:
external: true
networks:
cyberway-net:
nats-net: