openfire-docker-compose/proxy/docker-compose.yml

48 lines
1.0 KiB
YAML

services:
db:
image: library/postgres:9.6.24-alpine
ports:
- "5432:5432"
environment:
- "POSTGRES_DB=openfire"
- "POSTGRES_USER=openfire"
- "POSTGRES_PASSWORD=hunter2"
volumes:
- ./sql:/docker-entrypoint-initdb.d
proxy:
image: nginx:stable
ports:
- "55222:55222"
- "55269:55269"
- "55270:55270"
- "57070:57070"
- "57443:57443"
- "59090:59090"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
xmpp:
image: "openfire:${OPENFIRE_TAG}"
ports:
- "5222:5222"
- "5269:5269"
- "7070:7070"
- "7443:7443"
- "9090:9090"
depends_on:
- "db"
volumes:
- ./_data/xmpp/conf:/var/lib/openfire/conf
- ./_data/plugins:/opt/plugins
- ../_common/wait-for-it.sh:/wait-for-it.sh
command: ["/wait-for-it.sh", "-s", "db:5432", "--", "/sbin/entrypoint.sh"]
dozzle:
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9999:8080