Skip to content

Commit

Permalink
docker compose up single command setup
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrostr committed Jan 16, 2025
1 parent 662e157 commit 626941f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 97 deletions.
17 changes: 1 addition & 16 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
BLOCK_ENGINE_URL=https://frankfurt.mainnet.block-engine.jito.wtf
SHRED_RECEIVER_ADDR=145.40.93.84:1002
RELAYER_URL=http://frankfurt.mainnet.relayer.jito.wtf:8100

AUTH_KEYPAIR_PATH=auth.json
FUND_KEYPAIR_PATH=fund.json
FUND_KEYPAIR_BS58=<base58-encoded-keypair>

WS_URL=wss://api.mainnet-beta.solana.com
RPC_URL=https://api.mainnet-beta.solana.com

MONGO_URL="mongodb+srv://<username>:<password>@cluster0.ifvf463.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"

LISTENER_URL=http://localhost:8078
CHECKER_URL=http://localhost:8079
BUYER_URL=http://localhost:8080
SELLER_URL=http:/localhost:8081
RPC_URL=<solana-rpc-url>
17 changes: 17 additions & 0 deletions .env.full
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
BLOCK_ENGINE_URL=https://frankfurt.mainnet.block-engine.jito.wtf
SHRED_RECEIVER_ADDR=145.40.93.84:1002
RELAYER_URL=http://frankfurt.mainnet.relayer.jito.wtf:8100

AUTH_KEYPAIR_PATH=auth.json
FUND_KEYPAIR_PATH=fund.json
FUND_KEYPAIR_BS58=<base58-encoded-keypair>

WS_URL=wss://api.mainnet-beta.solana.com
RPC_URL=https://api.mainnet-beta.solana.com

MONGO_URL="mongodb+srv://<username>:<password>@cluster0.ifvf463.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"

LISTENER_URL=http://localhost:8078
CHECKER_URL=http://localhost:8079
BUYER_URL=http://localhost:8080
SELLER_URL=http:/localhost:8081
14 changes: 0 additions & 14 deletions docker-compose.agent.yml

This file was deleted.

78 changes: 11 additions & 67 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,16 @@
services:
listener:
image: piotrostr/listen
listen-service:
build:
context: .
dockerfile: Dockerfile
ports:
- "8078:8078"
- 6969:6969
volumes:
- ./.env:/.env
command: ["listen", "listener-service", "--webhook"]
environment:
- CHECKER_URL=http://checker:8079
restart: always
deploy:
replicas: 3
mode: replicated
endpoint_mode: vip
checker:
image: piotrostr/listen
command: ["./listen", "listen-service"]

listen-dashboard:
build:
context: ./dashboard
ports:
- "8079:8079"
volumes:
- ./.env:/.env
command: ["listen", "checker-service"]
environment:
- BUYER_URL=http://buyer:8080
restart: always
deploy:
replicas: 5
mode: replicated
endpoint_mode: vip
buyer:
image: piotrostr/listen
ports:
- "8080:8080"
volumes:
- ./.env:/.env
- ./auth.json:/auth.json
- ./fund.json:/fund.json
command: ["listen", "buyer-service"]
restart: always
environment:
- SELLER_URL=http://seller:8081
deploy:
replicas: 3
mode: replicated
endpoint_mode: vip
seller:
image: piotrostr/listen
ports:
- "8081:8081"
volumes:
- ./.env:/.env
- ./auth.json:/auth.json
- ./fund.json:/fund.json
command: ["listen", "seller-service"]
restart: always
deploy:
replicas: 5
mode: replicated
endpoint_mode: vip
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
- "3030:3030"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
deploy:
replicas: 1
mode: replicated
endpoint_mode: vip
- 4173:4173

0 comments on commit 626941f

Please sign in to comment.