diff --git a/.gitignore b/.gitignore index 7227221..f773d7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -config.hjson -config.*.hjson +/config.hjson +/config.*.hjson tezwatch.tar .env \ No newline at end of file diff --git a/samples/betanet/config.hjson b/samples/betanet/config.hjson new file mode 100644 index 0000000..8d3c87e --- /dev/null +++ b/samples/betanet/config.hjson @@ -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: + } +} \ No newline at end of file diff --git a/samples/betanet/docker-compose.yml b/samples/betanet/docker-compose.yml new file mode 100644 index 0000000..e1f915b --- /dev/null +++ b/samples/betanet/docker-compose.yml @@ -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 \ No newline at end of file