1da1acbfbe
* Removed old ansible-lint outside of molecule * Yamlint * Enabled ansible-lint with minimal rules * Removed ansible-lint job
129 lines
3.3 KiB
YAML
129 lines
3.3 KiB
YAML
---
|
|
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
|
|
networks:
|
|
- net_db_bridge_request
|
|
- net_db_bridge_collected
|
|
- net_db_bridge_affirmation
|
|
- net_db_bridge_senderhome
|
|
- net_db_bridge_senderforeign
|
|
restart: unless-stopped
|
|
volumes: ['~/bridge_data/redis:/data']
|
|
bridge_request:
|
|
cpus: 0.1
|
|
mem_limit: 500m
|
|
build:
|
|
context: ..
|
|
dockerfile: oracle/Dockerfile
|
|
env_file: ./.env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- VALIDATOR_ADDRESS_PRIVATE_KEY=${VALIDATOR_ADDRESS_PRIVATE_KEY}
|
|
restart: unless-stopped
|
|
entrypoint: yarn watcher:signature-request
|
|
networks:
|
|
- net_db_bridge_request
|
|
- net_rabbit_bridge_request
|
|
bridge_collected:
|
|
cpus: 0.1
|
|
mem_limit: 500m
|
|
build:
|
|
context: ..
|
|
dockerfile: oracle/Dockerfile
|
|
env_file: ./.env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- VALIDATOR_ADDRESS=${VALIDATOR_ADDRESS}
|
|
restart: unless-stopped
|
|
entrypoint: yarn watcher:collected-signatures
|
|
networks:
|
|
- net_db_bridge_collected
|
|
- net_rabbit_bridge_collected
|
|
bridge_affirmation:
|
|
cpus: 0.1
|
|
mem_limit: 500m
|
|
build:
|
|
context: ..
|
|
dockerfile: oracle/Dockerfile
|
|
env_file: ./.env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- VALIDATOR_ADDRESS=${VALIDATOR_ADDRESS}
|
|
restart: unless-stopped
|
|
entrypoint: yarn watcher:affirmation-request
|
|
networks:
|
|
- net_db_bridge_affirmation
|
|
- net_rabbit_bridge_affirmation
|
|
bridge_senderhome:
|
|
cpus: 0.1
|
|
mem_limit: 500m
|
|
build:
|
|
context: ..
|
|
dockerfile: oracle/Dockerfile
|
|
env_file: ./.env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- VALIDATOR_ADDRESS_PRIVATE_KEY=${VALIDATOR_ADDRESS_PRIVATE_KEY}
|
|
restart: unless-stopped
|
|
entrypoint: yarn sender:home
|
|
networks:
|
|
- net_db_bridge_senderhome
|
|
- net_rabbit_bridge_senderhome
|
|
bridge_senderforeign:
|
|
cpus: 0.1
|
|
mem_limit: 500m
|
|
build:
|
|
context: ..
|
|
dockerfile: oracle/Dockerfile
|
|
env_file: ./.env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- VALIDATOR_ADDRESS_PRIVATE_KEY=${VALIDATOR_ADDRESS_PRIVATE_KEY}
|
|
restart: unless-stopped
|
|
entrypoint: yarn sender:foreign
|
|
networks:
|
|
- net_db_bridge_senderforeign
|
|
- net_rabbit_bridge_senderforeign
|
|
|
|
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
|
|
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
|