Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osminogin/docker-prosody
Production ready Prosody communication server
https://github.com/osminogin/docker-prosody
Last synced: 15 days ago
JSON representation
Production ready Prosody communication server
- Host: GitHub
- URL: https://github.com/osminogin/docker-prosody
- Owner: osminogin
- License: mit
- Created: 2015-06-22T13:38:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-30T09:39:42.000Z (over 8 years ago)
- Last Synced: 2024-11-12T00:42:31.410Z (2 months ago)
- Homepage: https://hub.docker.com/r/osminogin/prosody/
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-prosody [![](https://images.microbadger.com/badges/image/osminogin/prosody.svg)](https://microbadger.com/images/osminogin/prosody)
Docker container for Prosody IM communication server.
Please star this project on Docker Hub: https://hub.docker.com/r/osminogin/prosody/
## Getting started
Copy config dir from running container to docker host:
```bash
docker run --rm --name prosody osminogin/prosody
sudo docker cp :/etc/prosody /srv
```Make the necessary changes and mount it as volume inside the container.
### User management
Also you must create first user to connect to the server:
```bash
docker exec prosodyctl register
```### Running
```bash
docker run -d \
-p 5222:5222 \
-p 5269:5269 \
-v /srv/prosody /etc/prosody \
osminogin/prosody
```## Example
### Unit file for systemd
```
[Unit]
Description=Prosody IM service
After=docker.service
Requires=docker.service[Service]
TimeoutStartSec=0
Restart=always
RestartSec=30s
Restart=on-failure
ExecStartPre=-/usr/bin/docker rm -f prosody
ExecStartPre=/usr/bin/docker pull osminogin/prosody
ExecStart=/usr/bin/docker run --name prosody \
-p 5222:5222 \
-p 5269:5269 \
-v /srv/prosody /etc/prosody \
osminogin/prosody
ExecStop=/usr/bin/docker stop prosody[Install]
WantedBy=multi-user.target
```## License
MIT