Stop launch when the database fails
parent
e2279def35
commit
4911c0f9a5
|
@ -42,7 +42,7 @@ services:
|
||||||
- ./_data/xmpp/clustered/1/conf:/var/lib/openfire/conf
|
- ./_data/xmpp/clustered/1/conf:/var/lib/openfire/conf
|
||||||
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
|
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
|
||||||
- ./wait-for-it.sh:/wait-for-it.sh
|
- ./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:
|
networks:
|
||||||
openfire-clustered-net:
|
openfire-clustered-net:
|
||||||
ipv4_address: 172.60.0.10
|
ipv4_address: 172.60.0.10
|
||||||
|
@ -68,7 +68,7 @@ services:
|
||||||
- ./_data/xmpp/clustered/2/conf:/var/lib/openfire/conf
|
- ./_data/xmpp/clustered/2/conf:/var/lib/openfire/conf
|
||||||
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
|
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
|
||||||
- ./wait-for-it.sh:/wait-for-it.sh
|
- ./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:
|
networks:
|
||||||
openfire-clustered-net:
|
openfire-clustered-net:
|
||||||
ipv4_address: 172.60.0.20
|
ipv4_address: 172.60.0.20
|
||||||
|
@ -94,7 +94,7 @@ services:
|
||||||
- ./_data/xmpp/clustered/3/conf:/var/lib/openfire/conf
|
- ./_data/xmpp/clustered/3/conf:/var/lib/openfire/conf
|
||||||
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
|
- ./_data/plugins/hazelcast.jar:/var/lib/openfire/plugins/hazelcast.jar
|
||||||
- ./wait-for-it.sh:/wait-for-it.sh
|
- ./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:
|
networks:
|
||||||
openfire-clustered-net:
|
openfire-clustered-net:
|
||||||
ipv4_address: 172.60.0.30
|
ipv4_address: 172.60.0.30
|
||||||
|
|
|
@ -43,7 +43,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./_data/xmpp/federated/1/conf:/var/lib/openfire/conf
|
- ./_data/xmpp/federated/1/conf:/var/lib/openfire/conf
|
||||||
- ./wait-for-it.sh:/wait-for-it.sh
|
- ./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:
|
networks:
|
||||||
openfire-federated-net:
|
openfire-federated-net:
|
||||||
ipv4_address: 172.50.0.10
|
ipv4_address: 172.50.0.10
|
||||||
|
@ -66,7 +66,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./_data/xmpp/federated/2/conf:/var/lib/openfire/conf
|
- ./_data/xmpp/federated/2/conf:/var/lib/openfire/conf
|
||||||
- ./wait-for-it.sh:/wait-for-it.sh
|
- ./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:
|
networks:
|
||||||
openfire-federated-net:
|
openfire-federated-net:
|
||||||
ipv4_address: 172.50.0.20
|
ipv4_address: 172.50.0.20
|
||||||
|
|
Loading…
Reference in New Issue