57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
services:
|
|
|
|
db:
|
|
networks:
|
|
openfire-clustered-net:
|
|
ipv4_address: 172.60.0.11
|
|
|
|
lb:
|
|
networks:
|
|
openfire-clustered-net:
|
|
ipv4_address: 172.60.0.99
|
|
|
|
xmpp1:
|
|
networks:
|
|
openfire-clustered-net:
|
|
ipv4_address: 172.60.0.10
|
|
extra_hosts:
|
|
- "xmpp1.localhost.example=172.60.0.10"
|
|
- "conference.xmpp1.localhost.example=172.60.0.10"
|
|
- "xmpp2.localhost.example=172.60.0.20"
|
|
- "conference.xmpp2.localhost.example=172.60.0.20"
|
|
- "xmpp3.localhost.example=172.60.0.30"
|
|
- "conference.xmpp3.localhost.example=172.60.0.30"
|
|
|
|
xmpp2:
|
|
networks:
|
|
openfire-clustered-net:
|
|
ipv4_address: 172.60.0.20
|
|
extra_hosts:
|
|
- "xmpp1.localhost.example=172.60.0.10"
|
|
- "conference.xmpp1.localhost.example=172.60.0.10"
|
|
- "xmpp2.localhost.example=172.60.0.20"
|
|
- "conference.xmpp2.localhost.example=172.60.0.20"
|
|
- "xmpp3.localhost.example=172.60.0.30"
|
|
- "conference.xmpp3.localhost.example=172.60.0.30"
|
|
|
|
xmpp3:
|
|
networks:
|
|
openfire-clustered-net:
|
|
ipv4_address: 172.60.0.30
|
|
extra_hosts:
|
|
- "xmpp1.localhost.example=172.60.0.10"
|
|
- "conference.xmpp1.localhost.example=172.60.0.10"
|
|
- "xmpp2.localhost.example=172.60.0.20"
|
|
- "conference.xmpp2.localhost.example=172.60.0.20"
|
|
- "xmpp3.localhost.example=172.60.0.30"
|
|
- "conference.xmpp3.localhost.example=172.60.0.30"
|
|
|
|
networks:
|
|
openfire-clustered-net:
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 172.60.0.0/24
|
|
|