12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- version: '3'
- services:
- ejabberd:
- image: ejabberd/ecs:21.12
- container_name: ejabberd
- hostname: ${HOSTNAME}
- mem_limit: 512m
- restart: on-failure:3
- ports:
- - 5222:5222 #c2s stattls#
- - 5223:5223 #c2s ssl#
- - 5269:5269 #s2s#
- - 5280:5280 #bosh + admin#
- - 5443:5443 #http-upload#
- - 3478:3478/udp #stun/turn
- - 5349:5349/tcp #stuns/turns
- # - 80:8080/tcp #acme
- volumes:
- - ./data/conf/ejabberd.yml:/home/ejabberd/conf/ejabberd.yml:ro
- - ./data/conf/conf.d:/home/ejabberd/conf/conf.d:ro
- - ./data/database/:/home/ejabberd/database/
- - ./data/backup/:/home/ejabberd/backup/
- - ./data/upload/:/home/ejabberd/upload/
- - /opt/docker/reverse-proxy/data/certs/${HOSTNAME}:/etc/ssl/ejabberd:ro
- environment:
- VIRTUAL_HOST: >
- ${HOSTNAME},
- conference.${HOSTNAME},
- pubsub.${HOSTNAME},
- upload.${HOSTNAME},
- irc.${HOSTNAME},
- proxy.${HOSTNAME},
- push.${HOSTNAME}
- LETSENCRYPT_HOST: >
- ${HOSTNAME},
- conference.${HOSTNAME},
- pubsub.${HOSTNAME},
- upload.${HOSTNAME},
- irc.${HOSTNAME},
- proxy.${HOSTNAME},
- push.${HOSTNAME}
- LETSENCRYPT_EMAIL: webmaster@${HOSTNAME}
- networks:
- - reverse-proxy_default
- networks:
- reverse-proxy_default:
- external: true
|