Skip to content

Commit

Permalink
add signer volume (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored May 15, 2024
1 parent fdb87d4 commit 381e7fa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
28 changes: 18 additions & 10 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,56 +43,64 @@ services:
depends_on:
flyway:
condition: service_completed_successfully
container_name: web3signer
restart: always
volumes:
- "signer_data:/app/web3signer"
networks:
dncore_network:
aliases:
- web3signer.web3signer-holesky.dappnode
restart: always

flyway:
build:
context: web3signer/flyway
dockerfile: Dockerfile
container_name: flyway
depends_on:
postgres:
condition: service_started
networks:
dncore_network:
aliases:
- flyway.web3signer.dappnode
depends_on:
postgres:
condition: service_started

postgres:
build:
context: web3signer/postgres
dockerfile: Dockerfile
networks:
dncore_network:
aliases:
- postgres.web3signer.dappnode
container_name: postgres
user: postgres
healthcheck:
test: pg_isready -U postgres
interval: 5s
timeout: 5s
retries: 5
restart: always
networks:
dncore_network:
aliases:
- postgres.web3signer.dappnode

brain:
build:
context: web3signer/brain
dockerfile: Dockerfile
container_name: brain
restart: always
volumes:
- "brain_data:/app/data"
networks:
dncore_network:
aliases:
- brain.web3signer.dappnode
volumes:
- "brain_data:/app/data"

networks:
dncore_network:
name: dncore_network
external: true

volumes:
signer_data: {}
brain_data: {}
mongo_data: {}
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ services:
build:
context: listener
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
MONGO_DB_URI: "mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo:${MONGO_DB_API_PORT}"
API_PORT: "${API_PORT}"
Expand All @@ -16,10 +14,10 @@ services:
BEACON_NODE_URL_HOLESKY: ${BEACON_NODE_URL_HOLESKY}
BEACON_NODE_URL_LUKSO: ${BEACON_NODE_URL_LUKSO}
BEACON_NODE_URL_GNOSIS: ${BEACON_NODE_URL_GNOSIS}

depends_on:
- mongo
container_name: listener
restart: always

ui:
build:
Expand All @@ -36,8 +34,7 @@ services:
depends_on:
- mongo
container_name: ui
ports:
- "8081:8081" # required for mac os access UI
restart: always

mongo:
build:
Expand All @@ -49,6 +46,7 @@ services:
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
command: ["mongod", "--config", "/etc/mongo/mongod.conf"]
container_name: mongo
restart: always

volumes:
mongo_data: {}

0 comments on commit 381e7fa

Please sign in to comment.