41 lines
908 B
YAML
41 lines
908 B
YAML
|
services:
|
||
|
prosody:
|
||
|
build:
|
||
|
network: host
|
||
|
context: ./build
|
||
|
dockerfile: ./Dockerfile
|
||
|
container_name: tc_xmpp
|
||
|
ports:
|
||
|
- "5222:5222"
|
||
|
- "5223:5223"
|
||
|
- "5269:5269"
|
||
|
- "5270:5270"
|
||
|
- "5347:5347"
|
||
|
- "5280:5280"
|
||
|
- "5281:5281"
|
||
|
env_file:
|
||
|
- path: ./.env/prosody.env
|
||
|
volumes:
|
||
|
- ./config:/etc/prosody
|
||
|
- ./log:/var/log/prosody
|
||
|
- ./modules:/usr/local/lib/prosody/modules
|
||
|
- ./libjs:/usr/local/lib/prosody/libjs
|
||
|
- /etc/letsencrypt/live/:/etc/letsencrypt/live/:ro
|
||
|
depends_on:
|
||
|
- postgres
|
||
|
networks:
|
||
|
- tc_prosody_network
|
||
|
postgres:
|
||
|
image: postgres:latest
|
||
|
container_name: tc_xmpp_postgres
|
||
|
env_file:
|
||
|
- path: ./.env/postgres.env
|
||
|
volumes:
|
||
|
- ./postgres:/var/lib/postgresql/data
|
||
|
networks:
|
||
|
- tc_prosody_network
|
||
|
|
||
|
networks:
|
||
|
tc_prosody_network:
|
||
|
driver: bridge
|