Skip to content

Commit

Permalink
feat: devnet docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Jan 23, 2025
1 parent 05be80d commit 6871775
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 16 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ COPY --from=building /council/dist ./dist
COPY --from=building /council/node_modules ./node_modules
COPY ./package*.json ./

RUN mkdir -p /council/cache && chown -R node:node /council/cache

USER node

HEALTHCHECK --interval=120s --timeout=10s --retries=2 \
Expand Down
71 changes: 55 additions & 16 deletions docker-compose.devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,74 @@ networks:
external: true

services:
rabbit:
build:
context: .
dockerfile: Dockerfile.test.yml
container_name: 'rabbitmq'
ports:
- "15674:15674"
- "15672:15672"

council_daemon:
dsm_rabbit:
build:
context: .
dockerfile: Dockerfile.test.yml
networks:
- devnet
ports:
- "15674:15674"
- "15672:15672"

council_daemon_1:
build: ./
networks:
- devnet
ports:
- "127.0.0.1:${PORT_1}:3000"
environment:
- PORT=3000
- LOG_LEVEL=${LOG_LEVEL}
- LOG_FORMAT=${LOG_FORMAT}
- RPC_URL=${RPC_URL}
- WALLET_PRIVATE_KEY=${WALLET_PRIVATE_KEY_1}
- KEYS_API_HOST=${KEYS_API_HOST}
- KEYS_API_PORT=${KEYS_API_PORT}

- PUBSUB_SERVICE=${PUBSUB_SERVICE}

- EVM_CHAIN_DATA_BUS_ADDRESS=${EVM_CHAIN_DATA_BUS_ADDRESS}
- EVM_CHAIN_DATA_BUS_PROVIDER_URL=${EVM_CHAIN_DATA_BUS_PROVIDER_URL}

- RABBITMQ_URL=${RABBITMQ_URL}
- RABBITMQ_LOGIN=${RABBITMQ_LOGIN}
- RABBITMQ_PASSCODE=${RABBITMQ_PASSCODE}

- LOCATOR_DEVNET_ADDRESS=${LOCATOR_DEVNET_ADDRESS}
volumes:
- council_1_cache:/council/cache/


council_daemon_2:
build: ./
networks:
- devnet
ports:
- "127.0.0.1:${PORT}:3000"
- "127.0.0.1:${PORT_2}:3000"
environment:
- PORT=3000
- LOG_LEVEL=${LOG_LEVEL}
- LOG_FORMAT=${LOG_FORMAT}
- RPC_URL=${RPC_URL}
- WALLET_PRIVATE_KEY=${WALLET_PRIVATE_KEY}
- WALLET_PRIVATE_KEY=${WALLET_PRIVATE_KEY_2}
- KEYS_API_HOST=${KEYS_API_HOST}
- KEYS_API_PORT=${KEYS_API_PORT}
- PUBSUB_SERVICE=rabbitmq

- PUBSUB_SERVICE=${PUBSUB_SERVICE}

- EVM_CHAIN_DATA_BUS_ADDRESS=${EVM_CHAIN_DATA_BUS_ADDRESS}
- EVM_CHAIN_DATA_BUS_PROVIDER_URL=${EVM_CHAIN_DATA_BUS_PROVIDER_URL}

- RABBITMQ_URL=${RABBITMQ_URL}
- RABBITMQ_LOGIN=${RABBITMQ_LOGIN}
- RABBITMQ_PASSCODE=${RABBITMQ_PASSCODE}

- LOCATOR_DEVNET_ADDRESS=${LOCATOR_DEVNET_ADDRESS}
volumes:
- ./.volumes/cache/:/council/cache/
# volumes:
# council_cache:
- council_2_cache:/council/cache/

volumes:
council_1_cache:
council_2_cache:

0 comments on commit 6871775

Please sign in to comment.