Skip to content

Commit

Permalink
depend_on healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Dec 28, 2024
1 parent 1e7a083 commit 941e4df
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 14 deletions.
3 changes: 2 additions & 1 deletion airdcpp/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ services:
- no-new-privileges:true

depends_on:
- openvpn
openvpn:
condition: service_healthy

network_mode: service:openvpn
volumes:
Expand Down
9 changes: 6 additions & 3 deletions indexarr/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ services:
- no-new-privileges:true

depends_on:
- openvpn
openvpn:
condition: service_healthy

network_mode: service:openvpn
volumes:
Expand All @@ -59,8 +60,10 @@ services:
- no-new-privileges:true

depends_on:
- openvpn
- solvarr
openvpn:
condition: service_healthy
solvarr:
condition: service_healthy

network_mode: service:openvpn
volumes:
Expand Down
6 changes: 4 additions & 2 deletions netbox/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ services:
- no-new-privileges:true

depends_on:
- postgres
- redis
postgres:
condition: service_healthy
redis:
condition: service_healthy

networks:
- default
Expand Down
9 changes: 6 additions & 3 deletions nextcloud/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ services:
user: ${USER_ID:?}

depends_on:
- mariadb
- redis
mariadb:
condition: service_healthy
redis:
condition: service_healthy

networks:
- default
Expand Down Expand Up @@ -150,7 +152,8 @@ services:
# user: ${USER_ID:?}

depends_on:
- nextcloud
nextcloud:
condition: service_healthy

networks:
- default
Expand Down
3 changes: 2 additions & 1 deletion pihole/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ services:
# NOTE: no `user:` needed; runs as non-root user since 2022.01

depends_on:
- dnscrypt-proxy
dnscrypt-proxy:
condition: service_healthy

networks:
default:
Expand Down
3 changes: 2 additions & 1 deletion qbittorrent/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ services:
tty: true

depends_on:
- openvpn
openvpn:
condition: service_healthy

network_mode: service:openvpn
volumes:
Expand Down
6 changes: 4 additions & 2 deletions teslamate/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ services:
user: ${USER_ID:?}

depends_on:
- db
- mqtt
db:
condition: service_healthy
mqtt:
condition: service_healthy

networks:
- default
Expand Down
3 changes: 2 additions & 1 deletion unifi/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ services:
- no-new-privileges:true

depends_on:
- mongo
mongo:
condition: service_healthy

volumes:
- ./data/unifi/usr/lib/unifi/cert:/usr/lib/unifi/cert:rw
Expand Down

0 comments on commit 941e4df

Please sign in to comment.