Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add web3signer volume #36

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: {}
Loading