diff --git a/compose.yml b/compose.yml index d6676e4..93a28c6 100644 --- a/compose.yml +++ b/compose.yml @@ -1,52 +1,49 @@ +version: "3.9" + services: executor: build: context: . dockerfile: Dockerfile + container_name: executor-container environment: - # Private Key, change to your own private key - PRIVATE_KEY_LOCAL: "0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" - - # 1. Set your preferred Node Environment + # Load sensitive variables from .env file + PRIVATE_KEY_LOCAL: "${PRIVATE_KEY_LOCAL}" + + # Node environment NODE_ENV: "testnet" - # 2. Set your log settings: + # Logging settings LOG_LEVEL: "debug" LOG_PRETTY: "false" - # 3. Process orders and claims - # Set both to true if you want your Executor to process orders and claims. - # You can set them to false at any point. - # I.e. EXECUTOR_PROCESS_ORDERS=false will stop your Executor from processing new orders. + # Process orders and claims EXECUTOR_PROCESS_ORDERS: "true" EXECUTOR_PROCESS_CLAIMS: "true" - - # 4. Specify limit on gas usage - # your executor will not taking order if L3 gas fee exceed this number - # (check current gas fee here > https://brn.explorer.caldera.xyz/) + # Limit on gas usage EXECUTOR_MAX_L3_GAS_PRICE: "8" - # NETWORKS & RPC (details > https://docs.t3rn.io/executor/become-an-executor/binary-setup#networks--rpc) - ENABLED_NETWORKS: "arbitrum-sepolia,optimism-sepolia,l1rn" - RPC_ENDPOINTS_OPSP: "https://opt-sepolia.g.alchemy.com/v2/7R1EuN8gJJQKYZX3VI8mm_aAAWOmIIDj" # or change to your own custom rpc - RPC_ENDPOINTS_ARBT: "https://arb-sepolia.g.alchemy.com/v2/7R1EuN8gJJQKYZX3VI8mm_aAAWOmIIDj" # or change to your own custom rpc - - # [Enable orders processing via RPC] () - # set to false you want to process orders via RPC. - # Set to true to process via our API. - EXECUTOR_PROCESS_PENDING_ORDERS_FROM_API: "false" - - #BATCH BIDDING + # Networks & RPC endpoints + ENABLED_NETWORKS: "base-sepolia,optimism-sepolia,l1rn" + # Orders processing via API + EXECUTOR_PROCESS_PENDING_ORDERS_FROM_API: "false" + + # Batch bidding EXECUTOR_ENABLE_BATCH_BIDDING: "true" - #BID ENABLE + # Enable bidding EXECUTOR_PROCESS_BIDS_ENABLED: "true" - - # -- [START] (optional) to prevent logging spam, remove '#' if you want to limit logging text to be saved -- - # logging: - # driver: "json-file" - # options: - # max-size: "500k" - # max-file: "3" - # -- [END] (optional) to prevent logging spam, remove '#' if you want to limit logging text to be saved -- + volumes: + - .:/app + restart: unless-stopped + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/health"] + interval: 30s + timeout: 10s + retries: 3