Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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