Last active
July 9, 2021 00:29
-
-
Save yiplee/0d41b232c93dbb8048d0fd30951d967b to your computer and use it in GitHub Desktop.
Pando deployment
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
db: | |
dialect: mysql | |
host: db | |
port: 3306 | |
user: root | |
password: pando | |
database: pando_1 | |
# node_1 dapp's keystore generated on mixin developer dashboard | |
dapp: | |
pin: "" | |
client_id: | |
session_id: | |
pin_token: | |
private_key: | |
group: | |
# private_key is an ed25519 private key shared among all nodes | |
private_key: irX/rMWtGxSCetUbBpVnJkpFYZ40GgmZnywnweA3GppY+8aUjfYspZ4/6Skpn9VkgRfn9wMBxcaUaZ+iWnqloQ== | |
# mixin id of node admins | |
admins: | |
- 8017d200-7870-4b82-b53f-74bae1d2dad7 | |
- 0919b0cb-8178-487d-bb56-85daa760426f | |
# client id of all nodes | |
members: | |
- 670e1faa-2975-48d9-a81f-cd0905ae847e | |
- 229fc7ac-9d09-4a6a-af5a-78f7439dce76 | |
- 8017d200-7870-4b82-b53f-74bae1d2dad7 | |
- 170e40f0-627f-4af2-acf5-0f25c009e523 | |
- dfa655ef-55db-4e18-bdd7-29a7c576a223 | |
# The minimum number of signatures required in this multisig group | |
threshold: 2 |
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
db: | |
dialect: mysql | |
host: db | |
port: 3306 | |
user: root | |
password: pando | |
database: pando_2 | |
# node_2 dapp's keystore generated on mixin developer dashboard | |
dapp: | |
pin: '' | |
client_id: | |
session_id: | |
pin_token: | |
private_key: "" | |
group: | |
# private_key is an ed25519 private key shared among all nodes | |
private_key: irX/rMWtGxSCetUbBpVnJkpFYZ40GgmZnywnweA3GppY+8aUjfYspZ4/6Skpn9VkgRfn9wMBxcaUaZ+iWnqloQ== | |
# mixin id of node admins | |
admins: | |
- 170e40f0-627f-4af2-acf5-0f25c009e523 | |
- 8017d200-7870-4b82-b53f-74bae1d2dad7 | |
# client id of all nodes | |
members: | |
- 670e1faa-2975-48d9-a81f-cd0905ae847e | |
- 229fc7ac-9d09-4a6a-af5a-78f7439dce76 | |
- 8017d200-7870-4b82-b53f-74bae1d2dad7 | |
- 170e40f0-627f-4af2-acf5-0f25c009e523 | |
- dfa655ef-55db-4e18-bdd7-29a7c576a223 | |
# The minimum number of signatures required in this multisig group | |
threshold: 2 |
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
db: | |
dialect: mysql | |
host: db | |
port: 3306 | |
user: root | |
password: pando | |
# same with node_1 | |
database: pando_1 | |
# node_1 dapp's keystore generated in mixin developer dashboard | |
dapp: | |
pin: "851873" | |
client_id: 670e1faa-2975-48d9-a81f-cd0905ae847e | |
# client_secret used to login with mixin oauth, generated in mixin developer dashboard | |
client_secret: a4406a1b6a77fce0d39c25cc6b616c5e0da8b22767afd52457f3d820c65f5b2d | |
session_id: f5a6299f-4411-4113-91cd-eafb46dbeef1 | |
pin_token: HBAX0X-t9F8FpbNls0u_iK7Cc7RYdooFl3oOnhO17Gs | |
private_key: YBCrO1l3R7LU1SiCvVyIHH0sGUjMSlXS0-Bha9u9GopH3A8LMXpvZm4enafQ6Muvbtc6tYHdgBh68Zo-n3g0Aw | |
group: | |
# public key of node_1.group.private_key | |
public_key: WPvGlI32LKWeP+kpKZ/VZIEX5/cDAcXGlGmfolp6paE= | |
# client id of all nodes | |
members: | |
- 670e1faa-2975-48d9-a81f-cd0905ae847e | |
- 229fc7ac-9d09-4a6a-af5a-78f7439dce76 | |
- 8017d200-7870-4b82-b53f-74bae1d2dad7 | |
- 170e40f0-627f-4af2-acf5-0f25c009e523 | |
- dfa655ef-55db-4e18-bdd7-29a7c576a223 | |
# The minimum number of signatures required in this multisig group | |
threshold: 2 |
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
services: | |
node1: | |
image: pando/worker | |
restart: always | |
command: --notify --keeper --cashier.capacity 10 | |
depends_on: | |
- db | |
volumes: | |
- ./config.node1.yaml:/app/config.yaml | |
ports: | |
- "7777:7777" | |
node2: | |
image: pando/worker | |
restart: always | |
command: --cashier.capacity 10 | |
depends_on: | |
- db | |
volumes: | |
- ./config.node2.yaml:/app/config.yaml | |
ports: | |
- "7776:7777" | |
api: | |
image: pando/server | |
restart: always | |
depends_on: | |
- db | |
volumes: | |
- ./config.server.yaml:/app/config.yaml | |
ports: | |
- "7778:7778" | |
db: | |
image: mysql:5.7 | |
restart: always | |
volumes: | |
- data:/var/lib/mysql | |
ports: | |
- "3306:3306" | |
environment: | |
- MYSQL_ROOT_PASSWORD=pando | |
- MYSQL_USER=pando | |
- MYSQL_PASSWORD=pando | |
volumes: | |
data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker-compose up db
first and then create two databases named pando_1 & pando_2 manually.