-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from poanetwork/develop
Merge the develop branch to the master branch
- Loading branch information
Showing
6 changed files
with
148 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
node_modules | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
docker-compose.yml | ||
Dockerfile | ||
.dockerignore | ||
docs | ||
e2e | ||
.git | ||
.env* | ||
.git* | ||
LICENSE | ||
README.md | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+429 KB
audit/peppersec/POA-Network-Token-bridge-security-assessment-report.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,122 @@ | ||
version: "3" | ||
version: '2.4' | ||
services: | ||
redis: | ||
image: "redis:4" | ||
command: ["redis-server", "--appendonly", "yes"] | ||
hostname: redis | ||
restart: on-failure | ||
volumes: | ||
- ~/bridge_data/redis:/data | ||
rabbit: | ||
image: "rabbitmq:3-management" | ||
cpus: 0.3 | ||
mem_limit: 500m | ||
environment: ['RABBITMQ_NODENAME=node@rabbit'] | ||
hostname: rabbit | ||
environment: | ||
- RABBITMQ_NODENAME=node@rabbit | ||
volumes: | ||
- ~/bridge_data/rabbitmq:/var/lib/rabbitmq/mnesia | ||
restart: on-failure | ||
bridge: | ||
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: . | ||
command: 'true' | ||
env_file: ./.env | ||
environment: | ||
- NODE_ENV=production | ||
- VALIDATOR_ADDRESS_PRIVATE_KEY=${VALIDATOR_ADDRESS_PRIVATE_KEY} | ||
restart: unless-stopped | ||
entrypoint: npm run watcher:signature-request | ||
networks: | ||
- net_db_bridge_request | ||
- net_rabbit_bridge_request | ||
bridge_collected: | ||
cpus: 0.1 | ||
mem_limit: 500m | ||
build: . | ||
command: 'true' | ||
env_file: ./.env | ||
environment: | ||
- NODE_ENV=production | ||
- VALIDATOR_ADDRESS=${VALIDATOR_ADDRESS} | ||
restart: unless-stopped | ||
entrypoint: npm run watcher:collected-signatures | ||
networks: | ||
- net_db_bridge_collected | ||
- net_rabbit_bridge_collected | ||
bridge_affirmation: | ||
cpus: 0.1 | ||
mem_limit: 500m | ||
build: . | ||
command: 'true' | ||
env_file: ./.env | ||
environment: | ||
- NODE_ENV=production | ||
- VALIDATOR_ADDRESS=${VALIDATOR_ADDRESS} | ||
restart: unless-stopped | ||
entrypoint: npm run watcher:affirmation-request | ||
networks: | ||
- net_db_bridge_affirmation | ||
- net_rabbit_bridge_affirmation | ||
bridge_senderhome: | ||
cpus: 0.1 | ||
mem_limit: 500m | ||
build: . | ||
command: 'true' | ||
env_file: ./.env | ||
environment: | ||
- NODE_ENV=production | ||
- VALIDATOR_ADDRESS_PRIVATE_KEY=${VALIDATOR_ADDRESS_PRIVATE_KEY} | ||
restart: unless-stopped | ||
entrypoint: npm run sender:home | ||
networks: | ||
- net_db_bridge_senderhome | ||
- net_rabbit_bridge_senderhome | ||
bridge_senderforeign: | ||
cpus: 0.1 | ||
mem_limit: 500m | ||
build: . | ||
command: 'true' | ||
env_file: ./.env | ||
environment: | ||
- NODE_ENV=production | ||
- QUEUE_URL=amqp://rabbit | ||
- REDIS_URL=redis://redis | ||
command: "true" | ||
restart: on-failure | ||
environment: | ||
- NODE_ENV=production | ||
- VALIDATOR_ADDRESS_PRIVATE_KEY=${VALIDATOR_ADDRESS_PRIVATE_KEY} | ||
restart: unless-stopped | ||
entrypoint: npm run 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 |