Skip to content

Commit

Permalink
added sample configuration for betanet
Browse files Browse the repository at this point in the history
  • Loading branch information
cryi committed Aug 3, 2024
1 parent 61eb8ef commit c92511a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
config.hjson
config.*.hjson
/config.hjson
/config.*.hjson
tezwatch.tar
.env
22 changes: 22 additions & 0 deletions samples/betanet/config.hjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
providers: [
https://rpc.betanet-2024-07-24.teztnets.com
]
tzkt_providers: [
https://api.betanet.tzkt.io/
]
storage: {
mode: rolling
stored_cycles: 20
}
database: {
host: pg_delegation_rewards
port: 5432
user: protocol_rewards
password: protocol_rewards
database: protocol_rewards
}
discord_notificator: {
webhook_url: <webhook url>
}
}
37 changes: 37 additions & 0 deletions samples/betanet/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
services:
pg_delegation_rewards:
image: postgres:alpine
restart: always
environment:
POSTGRES_USER: protocol_rewards
POSTGRES_PASSWORD: protocol_rewards
POSTGRES_DB: protocol_rewards
volumes:
- ./db:/var/lib/postgresql/data
networks:
- betanet-delegation-rewards-network

delegation_rewards:
image: ghcr.io/tez-capital/protocol-rewards:latest
restart: always
ports:
- "127.0.0.1:8082:8080"
- "127.0.0.1:8083:8081"
environment:
LISTEN: 0.0.0.0:8080
PRIVATE_LISTEN: 0.0.0.0:8081
volumes:
- ./config.hjson:/config.hjson:ro
depends_on:
- pg_delegation_rewards
networks:
- betanet-delegation-rewards-network
logging:
driver: json-file
options:
max-size: '200k' # Maximum file size
max-file: '10' # Maximum number of files

networks:
betanet-delegation-rewards-network:
driver: bridge

0 comments on commit c92511a

Please sign in to comment.