-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
562 additions
and
112 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
version: '3.8' | ||
services: | ||
relayer: | ||
image: nearaurora/srpc2-relayer | ||
container_name: srpc2-relayer | ||
# pull_policy: missing | ||
# build: | ||
# dockerfile: ../contrib/config/build/Dockerfile.relayer | ||
restart: unless-stopped | ||
init: true | ||
environment: | ||
- NEAR_ENV=%%SILO_NETWORK%% | ||
- NODE_ENV=%%SILO_NETWORK%% | ||
expose: | ||
- '8545' | ||
volumes: | ||
- ./config/relayer:/config | ||
- ./data/relayer:/data/relayer | ||
- ./data/refiner:/data/refiner | ||
- ./near:/near | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: 5m | ||
max-file: "5" | ||
networks: | ||
static-network: | ||
refiner: | ||
image: nearaurora/srpc2-refiner | ||
container_name: srpc2-refiner | ||
entrypoint: ["/docker-entrypoint.sh", "%%SILO_FROM_BLOCK%%"] | ||
# pull_policy: missing | ||
# build: | ||
# dockerfile: ../contrib/config/build/Dockerfile.refiner | ||
restart: unless-stopped | ||
environment: | ||
- RUST_BACKTRACE=${RUST_BACKTRACE:-1} | ||
- TZ=UTC0 | ||
volumes: | ||
- ./config/refiner:/config # config files | ||
- ./data/refiner:/data # Output directory | ||
- "%%AWS%%:/root/.aws/credentials:ro" | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: 5m | ||
max-file: "5" | ||
ports: | ||
- '127.0.0.1:23030:3030' | ||
networks: | ||
static-network: | ||
ipv4_address: 10.123.49.254 | ||
proxy: | ||
image: nearaurora/reverseproxy:latest | ||
container_name: srpc2-proxy | ||
restart: unless-stopped | ||
init: true | ||
expose: | ||
- '80' | ||
ports: | ||
- '20080:80' # Remove this line to prevent listening on public IP address. | ||
# - '127.0.0.1:20080:80' # Remove the hashtag in the beginning of this line to enable listening on 127.0.0.1. | ||
volumes: | ||
- ./config/nginx:/config | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: 5m | ||
max-file: "5" | ||
networks: | ||
static-network: | ||
ipv4_address: 10.123.49.253 | ||
watchtower: | ||
image: containrrr/watchtower | ||
container_name: srpc2-watchtower | ||
restart: unless-stopped | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
# - ./config/docker/config.json:/config.json | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: 5m | ||
max-file: "5" | ||
command: --interval 30 srpc2-relayer srpc2-refiner srpc2-proxy | ||
networks: | ||
static-network: | ||
ipam: | ||
config: | ||
- subnet: 10.123.49.0/24 | ||
volumes: | ||
database: |
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 |
---|---|---|
@@ -0,0 +1,94 @@ | ||
--- | ||
version: '3.8' | ||
services: | ||
relayer: | ||
image: nearaurora/srpc2-relayer | ||
container_name: srpc2-relayer | ||
# pull_policy: missing | ||
# build: | ||
# dockerfile: ../contrib/config/build/Dockerfile.relayer | ||
restart: unless-stopped | ||
init: true | ||
environment: | ||
- NEAR_ENV=%%SILO_NETWORK%% | ||
- NODE_ENV=%%SILO_NETWORK%% | ||
expose: | ||
- '8545' | ||
volumes: | ||
- ./config/relayer:/config | ||
- ./data/relayer:/data/relayer | ||
- ./data/refiner:/data/refiner | ||
- ./near:/near | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: 5m | ||
max-file: "5" | ||
networks: | ||
static-network: | ||
refiner: | ||
image: nearaurora/srpc2-refiner | ||
container_name: srpc2-refiner | ||
entrypoint: ["/docker-entrypoint.sh", "%%SILO_FROM_BLOCK%%"] | ||
# pull_policy: missing | ||
# build: | ||
# dockerfile: ../contrib/config/build/Dockerfile.refiner | ||
restart: unless-stopped | ||
environment: | ||
- RUST_BACKTRACE=${RUST_BACKTRACE:-1} | ||
- TZ=UTC0 | ||
volumes: | ||
- ./config/refiner:/config # config files | ||
- ./data/refiner:/data # Output directory | ||
- ./near:/near # Path to Nearcore data | ||
- ./engine:/engine | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: 5m | ||
max-file: "5" | ||
ports: | ||
- '127.0.0.1:23030:3030' | ||
networks: | ||
static-network: | ||
ipv4_address: 10.123.49.254 | ||
proxy: | ||
image: nearaurora/reverseproxy:latest | ||
container_name: srpc2-proxy | ||
restart: unless-stopped | ||
init: true | ||
expose: | ||
- '80' | ||
ports: | ||
- '20080:80' # Remove this line to prevent listening on public IP address. | ||
# - '127.0.0.1:20080:80' # Remove the hashtag in the beginning of this line to enable listening on 127.0.0.1. | ||
volumes: | ||
- ./config/nginx:/config | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: 5m | ||
max-file: "5" | ||
networks: | ||
static-network: | ||
ipv4_address: 10.123.49.253 | ||
watchtower: | ||
image: containrrr/watchtower | ||
container_name: srpc2-watchtower | ||
restart: unless-stopped | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
# - ./config/docker/config.json:/config.json | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: 5m | ||
max-file: "5" | ||
command: --interval 30 srpc2-relayer srpc2-refiner srpc2-proxy | ||
networks: | ||
static-network: | ||
ipam: | ||
config: | ||
- subnet: 10.123.49.0/24 | ||
volumes: | ||
database: |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
upstream endpoint { | ||
server 10.123.49.2:8545; | ||
} | ||
|
||
server { | ||
listen *:80; | ||
|
||
location / { | ||
client_body_buffer_size 64k; | ||
proxy_pass http://endpoint; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_socket_keepalive on; | ||
nchan_websocket_ping_interval 5; | ||
nchan_websocket_client_heartbeat PING PONG; | ||
proxy_read_timeout 360000s; | ||
proxy_send_timeout 360000s; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"refiner": { | ||
"chain_id": %%SILO_CHAIN_ID%%, | ||
"engine_path": "/engine", | ||
"tx_tracker_path": "/engine/tx_tracker", | ||
"engine_account_id": "aurora" | ||
}, | ||
"input_mode": { | ||
"DataLake": { | ||
"network": "%%SILO_DATALAKE_NETWORK%%" | ||
} | ||
}, | ||
"output_storage": { | ||
"path": "/data", | ||
"batch_size": 10000 | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"refiner": { | ||
"chain_id": %%SILO_CHAIN_ID%%, | ||
"engine_path": "/engine", | ||
"tx_tracker_path": "/engine/tx_tracker", | ||
"engine_account_id": "aurora" | ||
}, | ||
"input_mode": { | ||
"Nearcore": { | ||
"path": "/near" | ||
} | ||
}, | ||
"output_storage": { | ||
"path": "/data", | ||
"batch_size": 10000 | ||
} | ||
} |
Oops, something went wrong.