2019-07-11 10:17:02 +02:00
|
|
|
---
|
2019-05-06 13:12:53 +02:00
|
|
|
version: '2.4'
|
|
|
|
services:
|
|
|
|
rabbit:
|
|
|
|
cpus: 0.3
|
|
|
|
mem_limit: 500m
|
|
|
|
environment: ['RABBITMQ_NODENAME=node@rabbit']
|
|
|
|
hostname: rabbit
|
|
|
|
image: rabbitmq:3
|
|
|
|
networks:
|
|
|
|
- net_rabbit_bridge_request
|
|
|
|
- net_rabbit_bridge_collected
|
|
|
|
- net_rabbit_bridge_affirmation
|
|
|
|
- net_rabbit_bridge_senderhome
|
|
|
|
- net_rabbit_bridge_senderforeign
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes: ['~/bridge_data/rabbitmq:/var/lib/rabbitmq/mnesia']
|
|
|
|
redis:
|
|
|
|
cpus: 0.1
|
|
|
|
mem_limit: 500m
|
|
|
|
command: [redis-server, --appendonly, 'yes']
|
|
|
|
hostname: redis
|
|
|
|
image: redis:4
|
2021-04-12 23:38:42 +03:00
|
|
|
networks:
|
2019-05-06 13:12:53 +02:00
|
|
|
- net_db_bridge_request
|
|
|
|
- net_db_bridge_collected
|
|
|
|
- net_db_bridge_affirmation
|
|
|
|
- net_db_bridge_senderhome
|
|
|
|
- net_db_bridge_senderforeign
|
2021-04-12 23:38:42 +03:00
|
|
|
- net_db_bridge_shutdown
|
2019-05-06 13:12:53 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes: ['~/bridge_data/redis:/data']
|
|
|
|
bridge_request:
|
|
|
|
cpus: 0.1
|
|
|
|
mem_limit: 500m
|
2020-02-03 18:48:28 -03:00
|
|
|
image: poanetwork/tokenbridge-oracle:latest
|
2019-05-06 13:12:53 +02:00
|
|
|
env_file: ./.env
|
2021-04-12 23:38:42 +03:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2019-09-13 09:11:38 +02:00
|
|
|
- ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY=${ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY}
|
2019-05-06 13:12:53 +02:00
|
|
|
restart: unless-stopped
|
2019-05-31 14:54:32 +02:00
|
|
|
entrypoint: yarn watcher:signature-request
|
2019-05-06 13:12:53 +02:00
|
|
|
networks:
|
|
|
|
- net_db_bridge_request
|
|
|
|
- net_rabbit_bridge_request
|
|
|
|
bridge_collected:
|
|
|
|
cpus: 0.1
|
|
|
|
mem_limit: 500m
|
2020-02-03 18:48:28 -03:00
|
|
|
image: poanetwork/tokenbridge-oracle:latest
|
2019-05-06 13:12:53 +02:00
|
|
|
env_file: ./.env
|
2021-04-12 23:38:42 +03:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2019-09-13 09:11:38 +02:00
|
|
|
- ORACLE_VALIDATOR_ADDRESS=${ORACLE_VALIDATOR_ADDRESS}
|
2019-05-06 13:12:53 +02:00
|
|
|
restart: unless-stopped
|
2019-05-31 14:54:32 +02:00
|
|
|
entrypoint: yarn watcher:collected-signatures
|
2019-05-06 13:12:53 +02:00
|
|
|
networks:
|
|
|
|
- net_db_bridge_collected
|
|
|
|
- net_rabbit_bridge_collected
|
|
|
|
bridge_affirmation:
|
|
|
|
cpus: 0.1
|
|
|
|
mem_limit: 500m
|
2020-02-03 18:48:28 -03:00
|
|
|
image: poanetwork/tokenbridge-oracle:latest
|
2019-05-06 13:12:53 +02:00
|
|
|
env_file: ./.env
|
2021-04-12 23:38:42 +03:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2019-09-13 09:11:38 +02:00
|
|
|
- ORACLE_VALIDATOR_ADDRESS=${ORACLE_VALIDATOR_ADDRESS}
|
2019-05-06 13:12:53 +02:00
|
|
|
restart: unless-stopped
|
2019-05-31 14:54:32 +02:00
|
|
|
entrypoint: yarn watcher:affirmation-request
|
2019-05-06 13:12:53 +02:00
|
|
|
networks:
|
|
|
|
- net_db_bridge_affirmation
|
|
|
|
- net_rabbit_bridge_affirmation
|
|
|
|
bridge_senderhome:
|
|
|
|
cpus: 0.1
|
|
|
|
mem_limit: 500m
|
2020-02-03 18:48:28 -03:00
|
|
|
image: poanetwork/tokenbridge-oracle:latest
|
2019-05-06 13:12:53 +02:00
|
|
|
env_file: ./.env
|
2021-04-12 23:38:42 +03:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2019-09-13 09:11:38 +02:00
|
|
|
- ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY=${ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY}
|
2019-05-06 13:12:53 +02:00
|
|
|
restart: unless-stopped
|
2019-05-31 14:54:32 +02:00
|
|
|
entrypoint: yarn sender:home
|
2019-05-06 13:12:53 +02:00
|
|
|
networks:
|
|
|
|
- net_db_bridge_senderhome
|
|
|
|
- net_rabbit_bridge_senderhome
|
|
|
|
bridge_senderforeign:
|
|
|
|
cpus: 0.1
|
|
|
|
mem_limit: 500m
|
2020-02-03 18:48:28 -03:00
|
|
|
image: poanetwork/tokenbridge-oracle:latest
|
2019-05-06 13:12:53 +02:00
|
|
|
env_file: ./.env
|
2021-04-12 23:38:42 +03:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2019-09-13 09:11:38 +02:00
|
|
|
- ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY=${ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY}
|
2019-05-06 13:12:53 +02:00
|
|
|
restart: unless-stopped
|
2019-05-31 14:54:32 +02:00
|
|
|
entrypoint: yarn sender:foreign
|
2019-05-06 13:12:53 +02:00
|
|
|
networks:
|
|
|
|
- net_db_bridge_senderforeign
|
|
|
|
- net_rabbit_bridge_senderforeign
|
2021-04-12 23:38:42 +03:00
|
|
|
bridge_shutdown:
|
|
|
|
cpus: 0.1
|
|
|
|
mem_limit: 500m
|
|
|
|
image: poanetwork/tokenbridge-oracle:latest
|
|
|
|
env_file: ./.env
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
restart: unless-stopped
|
|
|
|
entrypoint: yarn manager:shutdown
|
|
|
|
networks:
|
|
|
|
- net_db_bridge_shutdown
|
2019-05-06 13:12:53 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
net_db_bridge_request:
|
|
|
|
driver: bridge
|
|
|
|
net_db_bridge_collected:
|
|
|
|
driver: bridge
|
|
|
|
net_db_bridge_affirmation:
|
|
|
|
driver: bridge
|
|
|
|
net_db_bridge_senderhome:
|
|
|
|
driver: bridge
|
|
|
|
net_db_bridge_senderforeign:
|
|
|
|
driver: bridge
|
2021-04-12 23:38:42 +03:00
|
|
|
net_db_bridge_shutdown:
|
|
|
|
driver: bridge
|
2019-05-06 13:12:53 +02:00
|
|
|
net_rabbit_bridge_request:
|
|
|
|
driver: bridge
|
|
|
|
net_rabbit_bridge_collected:
|
|
|
|
driver: bridge
|
|
|
|
net_rabbit_bridge_affirmation:
|
|
|
|
driver: bridge
|
|
|
|
net_rabbit_bridge_senderhome:
|
|
|
|
driver: bridge
|
|
|
|
net_rabbit_bridge_senderforeign:
|
|
|
|
driver: bridge
|