Skip to content

Commit 381e7fa

Browse files
add signer volume (#36)
1 parent fdb87d4 commit 381e7fa

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

docker-compose.dev.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -43,56 +43,64 @@ services:
4343
depends_on:
4444
flyway:
4545
condition: service_completed_successfully
46+
container_name: web3signer
47+
restart: always
48+
volumes:
49+
- "signer_data:/app/web3signer"
4650
networks:
4751
dncore_network:
4852
aliases:
4953
- web3signer.web3signer-holesky.dappnode
50-
restart: always
5154

5255
flyway:
5356
build:
5457
context: web3signer/flyway
5558
dockerfile: Dockerfile
59+
container_name: flyway
60+
depends_on:
61+
postgres:
62+
condition: service_started
5663
networks:
5764
dncore_network:
5865
aliases:
5966
- flyway.web3signer.dappnode
60-
depends_on:
61-
postgres:
62-
condition: service_started
6367

6468
postgres:
6569
build:
6670
context: web3signer/postgres
6771
dockerfile: Dockerfile
68-
networks:
69-
dncore_network:
70-
aliases:
71-
- postgres.web3signer.dappnode
72+
container_name: postgres
7273
user: postgres
7374
healthcheck:
7475
test: pg_isready -U postgres
7576
interval: 5s
7677
timeout: 5s
7778
retries: 5
7879
restart: always
80+
networks:
81+
dncore_network:
82+
aliases:
83+
- postgres.web3signer.dappnode
7984

8085
brain:
8186
build:
8287
context: web3signer/brain
8388
dockerfile: Dockerfile
89+
container_name: brain
90+
restart: always
91+
volumes:
92+
- "brain_data:/app/data"
8493
networks:
8594
dncore_network:
8695
aliases:
8796
- brain.web3signer.dappnode
88-
volumes:
89-
- "brain_data:/app/data"
9097

9198
networks:
9299
dncore_network:
93100
name: dncore_network
94101
external: true
95102

96103
volumes:
104+
signer_data: {}
97105
brain_data: {}
98106
mongo_data: {}

docker-compose.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ services:
55
build:
66
context: listener
77
dockerfile: Dockerfile
8-
ports:
9-
- "8080:8080"
108
environment:
119
MONGO_DB_URI: "mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo:${MONGO_DB_API_PORT}"
1210
API_PORT: "${API_PORT}"
@@ -16,10 +14,10 @@ services:
1614
BEACON_NODE_URL_HOLESKY: ${BEACON_NODE_URL_HOLESKY}
1715
BEACON_NODE_URL_LUKSO: ${BEACON_NODE_URL_LUKSO}
1816
BEACON_NODE_URL_GNOSIS: ${BEACON_NODE_URL_GNOSIS}
19-
2017
depends_on:
2118
- mongo
2219
container_name: listener
20+
restart: always
2321

2422
ui:
2523
build:
@@ -36,8 +34,7 @@ services:
3634
depends_on:
3735
- mongo
3836
container_name: ui
39-
ports:
40-
- "8081:8081" # required for mac os access UI
37+
restart: always
4138

4239
mongo:
4340
build:
@@ -49,6 +46,7 @@ services:
4946
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
5047
command: ["mongod", "--config", "/etc/mongo/mongod.conf"]
5148
container_name: mongo
49+
restart: always
5250

5351
volumes:
5452
mongo_data: {}

0 commit comments

Comments
 (0)