Skip to content

Commit

Permalink
Add docker-compose services
Browse files Browse the repository at this point in the history
  • Loading branch information
trunghai95 committed Nov 10, 2023
1 parent 3488505 commit f9d398d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,47 @@ services:
- "/bin/sh"
- "-c"
- "/app/xgon-bridge run --cfg /app/config.toml"

xgon-bridge-service-api:
container_name: xgon-bridge-service-api
image: xgon-bridge-service
ports:
- 8080:8080
- 9090:9090
environment:
- ZKEVM_BRIDGE_DATABASE_USER=test_user
- ZKEVM_BRIDGE_DATABASE_PASSWORD=test_password
- ZKEVM_BRIDGE_DATABASE_NAME=test_db
- ZKEVM_BRIDGE_DATABASE_HOST=xgon-bridge-db
- ZKEVM_BRIDGE_DATABASE_PORT=5432
volumes:
- ./test/test.keystore.claimtx:/pk/keystore.claimtxmanager
- ./config/config.local.toml:/app/config.toml
- ./sentinel/config.json:/app/sentinel_config.json
- ./coinmiddleware/root-ca-cert:/app/root-ca-cert
command:
- "/bin/sh"
- "-c"
- "/app/xgon-bridge runAPI --cfg /app/config.toml"

xgon-bridge-service-task:
container_name: xgon-bridge-service-task
image: xgon-bridge-service
ports:
- 8080:8080
- 9090:9090
environment:
- ZKEVM_BRIDGE_DATABASE_USER=test_user
- ZKEVM_BRIDGE_DATABASE_PASSWORD=test_password
- ZKEVM_BRIDGE_DATABASE_NAME=test_db
- ZKEVM_BRIDGE_DATABASE_HOST=xgon-bridge-db
- ZKEVM_BRIDGE_DATABASE_PORT=5432
volumes:
- ./test/test.keystore.claimtx:/pk/keystore.claimtxmanager
- ./config/config.local.toml:/app/config.toml
- ./sentinel/config.json:/app/sentinel_config.json
- ./coinmiddleware/root-ca-cert:/app/root-ca-cert
command:
- "/bin/sh"
- "-c"
- "/app/xgon-bridge runTask --cfg /app/config.toml"

0 comments on commit f9d398d

Please sign in to comment.