Skip to content

Commit 0e68d10

Browse files
authored
Merge pull request #9 from iron-fish/rahul/fix-docker-depends_on
Reverting changes the prevented dservice to start
2 parents 47a3dd4 + c829da7 commit 0e68d10

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

docker-compose.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ services:
2929
- oreowallet_network
3030
healthcheck:
3131
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
32-
interval: 5s
32+
interval: 10s
3333
timeout: 5s
3434
retries: 5
35-
start_period: 10s
3635

3736
migration:
3837
env_file: .env
@@ -44,10 +43,8 @@ services:
4443
networks:
4544
- oreowallet_network
4645
depends_on:
47-
postgres:
48-
condition: service_healthy
49-
dbconfig:
50-
condition: service_completed_successfully
46+
- postgres
47+
- dbconfig
5148
logging:
5249
driver: "json-file"
5350
options:
@@ -63,8 +60,7 @@ services:
6360
volumes:
6461
- conf:/app/conf
6562
depends_on:
66-
migration:
67-
condition: service_completed_successfully
63+
- migration
6864
networks:
6965
- oreowallet_network
7066
ulimits:
@@ -86,10 +82,8 @@ services:
8682
ports:
8783
- "10002:10002"
8884
depends_on:
89-
migration:
90-
condition: service_completed_successfully
91-
chainloader:
92-
condition: service_completed_successfully
85+
- migration
86+
- chainloader
9387
networks:
9488
- oreowallet_network
9589
ulimits:
@@ -147,10 +141,8 @@ services:
147141
volumes:
148142
- conf:/app/conf
149143
depends_on:
150-
migration:
151-
condition: service_completed_successfully
152-
chainloader:
153-
condition: service_completed_successfully
144+
- migration
145+
- chainloader
154146
networks:
155147
oreowallet_network:
156148
ipv4_address: 172.19.0.10
@@ -171,12 +163,9 @@ services:
171163
image: "oreowallet"
172164
command: ./dworker --address 172.19.0.10:10001 --verbosity ${VERBOSITY:-0}
173165
depends_on:
174-
migration:
175-
condition: service_completed_successfully
176-
chainloader:
177-
condition: service_completed_successfully
178-
dservice:
179-
condition: service_completed_successfully
166+
- migration
167+
- chainloader
168+
- dservice
180169
networks:
181170
- oreowallet_network
182171
ulimits:

0 commit comments

Comments
 (0)