This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·74 lines (67 loc) · 1.79 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
65
66
67
68
69
70
71
72
73
74
version: '3.3'
services:
# collects block_log data, aggregates it, and saves it to redis
python_aggregator:
restart: always
build: ./python
image: eostitan/ux-resource-usage-oracle-python:1
volumes:
- ./python:/usr/src/app
- "./redis:/data"
env_file:
- ./config.env
command: ["python", "src/aggregator.py"]
depends_on:
- redis
# aggregates test data, and saves it to redis
python_aggregate_test_data:
build: ./python
image: eostitan/ux-resource-usage-oracle-python:1
volumes:
- ./python:/usr/src/app
- "./redis:/data"
env_file:
- ./config.env
command: ["python", "src/aggregate_test_data.py"]
depends_on:
- redis
# sends aggregated data from redis to the eosjs_server for pushing to API node
python_submitter:
restart: always
build: ./python
image: eostitan/ux-resource-usage-oracle-python:1
volumes:
- ./python:/usr/src/app
- "./redis:/data"
env_file:
- ./config.env
command: ["python", "src/submitter.py"]
depends_on:
- redis
- eosjs_server
# provides http method to push transactions to API node
eosjs_server:
restart: always
build: ./eosjs_server
image: eostitan/ux-resource-usage-oracle-eosjs-server:1
volumes:
- ./eosjs_server:/home/app
- /home/app/node_modules
env_file:
- ./config.env
working_dir: /home/app
command: ["node", "app.js"]
# stores all usage data
redis:
restart: always
image: "redis"
volumes:
- "./redis:/data"
entrypoint: ["redis-server", "--save", "300", "1"]
# redis-admin:
# restart: always
# image: rediscommander/redis-commander
# environment:
# - REDIS_HOSTS=local:resource_usage_oracle_redis:6379
# ports:
# - "8081:8081"