Stop launch when the database fails

pull/29/head
Dan Caseley 2021-09-03 18:21:38 +01:00
parent e2279def35
commit 4911c0f9a5
No known key found for this signature in database
GPG Key ID: 2D0A6EF1391F1F97
2 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ services:
- ./_data/xmpp/clustered/1/conf:/var/lib/openfire/conf
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
- ./wait-for-it.sh:/wait-for-it.sh
command: ["/wait-for-it.sh", "db:5432", "--", "/sbin/entrypoint.sh"]
command: ["/wait-for-it.sh", "-s", "db:5432", "--", "/sbin/entrypoint.sh"]
networks:
openfire-clustered-net:
ipv4_address: 172.60.0.10
@ -68,7 +68,7 @@ services:
- ./_data/xmpp/clustered/2/conf:/var/lib/openfire/conf
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
- ./wait-for-it.sh:/wait-for-it.sh
command: ["/wait-for-it.sh", "db:5432", "--", "/sbin/entrypoint.sh"]
command: ["/wait-for-it.sh", "-s", "db:5432", "--", "/sbin/entrypoint.sh"]
networks:
openfire-clustered-net:
ipv4_address: 172.60.0.20
@ -94,7 +94,7 @@ services:
- ./_data/xmpp/clustered/3/conf:/var/lib/openfire/conf
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
- ./wait-for-it.sh:/wait-for-it.sh
command: ["/wait-for-it.sh", "db:5432", "--", "/sbin/entrypoint.sh"]
command: ["/wait-for-it.sh", "-s", "db:5432", "--", "/sbin/entrypoint.sh"]
networks:
openfire-clustered-net:
ipv4_address: 172.60.0.30

View File

@ -43,7 +43,7 @@ services:
volumes:
- ./_data/xmpp/federated/1/conf:/var/lib/openfire/conf
- ./wait-for-it.sh:/wait-for-it.sh
command: ["/wait-for-it.sh", "db1:5432", "--", "/sbin/entrypoint.sh"]
command: ["/wait-for-it.sh", "-s", "db1:5432", "--", "/sbin/entrypoint.sh"]
networks:
openfire-federated-net:
ipv4_address: 172.50.0.10
@ -66,7 +66,7 @@ services:
volumes:
- ./_data/xmpp/federated/2/conf:/var/lib/openfire/conf
- ./wait-for-it.sh:/wait-for-it.sh
command: ["/wait-for-it.sh", "db2:5432", "--", "/sbin/entrypoint.sh"]
command: ["/wait-for-it.sh", "-s", "db2:5432", "--", "/sbin/entrypoint.sh"]
networks:
openfire-federated-net:
ipv4_address: 172.50.0.20