Compare commits
11 Commits
c0adab4830
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 72d812b106 | |||
| c695bb1d72 | |||
| 49238da275 | |||
| 73583a0f62 | |||
| 01b6ceac22 | |||
| 06fd6be4d3 | |||
| e8c0ee9b47 | |||
| 5df435ba86 | |||
| a72eb09c1f | |||
| 24dba3e2ed | |||
| 730581c16d |
@@ -24,4 +24,8 @@ RUN rm -rfv /etc/prosody/README*
|
|||||||
# Install + Run Website
|
# Install + Run Website
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
USER root
|
USER root
|
||||||
CMD tail -F /var/log/TBD
|
CMD prosodyctl cert import /etc/letsencrypt/live && \
|
||||||
|
service prosody start && \
|
||||||
|
prosodyctl reload && \
|
||||||
|
tail -F /var/log/prosody/prosody.log & \
|
||||||
|
tail -F /var/log/prosody/prosody.err
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
# Example docker-compose.yml for Prosody
|
||||||
|
# Documentation is available at:
|
||||||
|
# https://prosody.im/doc/docker
|
||||||
|
|
||||||
|
# Edit this file as necessary. Run 'docker compose up -d' to apply changes.
|
||||||
|
# Run 'docker compose up -d --pull' to check for and apply any Prosody updates.
|
||||||
|
|
||||||
|
services:
|
||||||
|
prosody:
|
||||||
|
# Change 13.0 to the branch you want to use
|
||||||
|
image: prosodyim/prosody:13.0
|
||||||
|
|
||||||
|
# Always check for updates when starting
|
||||||
|
pull_policy: always
|
||||||
|
|
||||||
|
# Automatically start Prosody, e.g. when your system starts, if it was
|
||||||
|
# running previously
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Network ports to expose
|
||||||
|
ports:
|
||||||
|
# Client connections
|
||||||
|
- 5222:5222
|
||||||
|
# Server-to-server connections
|
||||||
|
- 5269:5269
|
||||||
|
|
||||||
|
# Directories where data will be stored
|
||||||
|
volumes:
|
||||||
|
# This will use a 'data' directory in the same directory as the
|
||||||
|
# docker-compose.yml. Make this directory before you start Prosody,
|
||||||
|
# and ensure it is owned by a non-root user. The ownership of the
|
||||||
|
# directory will control the default user id that Prosody runs as.
|
||||||
|
- ./data:/var/lib/prosody
|
||||||
|
|
||||||
|
# Set environment variables. See the documentation for all possible options.
|
||||||
|
environment:
|
||||||
|
PROSODY_VIRTUAL_HOSTS: localhost
|
||||||
+16
-2
@@ -1,6 +1,20 @@
|
|||||||
# 2026-06-11 Hyperling
|
# 2026-06-11 Hyperling
|
||||||
# Configuration for running a Prosody XMPP server.
|
# Configuration for running a Prosody XMPP server.
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
prosody_data:
|
||||||
|
driver: local
|
||||||
|
driver_opts:
|
||||||
|
type: none
|
||||||
|
device: ../../Volumes/Prosody/data
|
||||||
|
o: bind
|
||||||
|
prosody_certs:
|
||||||
|
driver: local
|
||||||
|
driver_opts:
|
||||||
|
type: none
|
||||||
|
device: ../../Volumes/ReverseProxy/letsencrypt/live
|
||||||
|
o: bind
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
container_name: prosody
|
container_name: prosody
|
||||||
@@ -23,8 +37,8 @@ services:
|
|||||||
# retries: 2
|
# retries: 2
|
||||||
# start_period: 30s
|
# start_period: 30s
|
||||||
volumes:
|
volumes:
|
||||||
- ../../Volumes/Prosody/prosody:/root/share/
|
- prosody_data:/var/lib/prosody/
|
||||||
- ../../Volumes/ReverseProxy/letsencrypt/live:/etc/prosody/certs
|
- prosody_certs:/etc/letsencrypt/live
|
||||||
deploy:
|
deploy:
|
||||||
mode: global
|
mode: global
|
||||||
resources:
|
resources:
|
||||||
@@ -8,8 +8,8 @@ VirtualHost "example.com"
|
|||||||
-- Note that old-style SSL on port 5223 only supports one certificate, and will always
|
-- Note that old-style SSL on port 5223 only supports one certificate, and will always
|
||||||
-- use the global one.
|
-- use the global one.
|
||||||
--ssl = {
|
--ssl = {
|
||||||
-- key = "/etc/prosody/certs/example.com/privkey.pem";
|
-- key = "/etc/letsencrypt/live/example.com/privkey.pem";
|
||||||
-- certificate = "/etc/prosody/certs/example.com/fullchain.pem";
|
-- certificate = "/etc/letsencrypt/live/example.com/fullchain.pem";
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
------ Components ------
|
------ Components ------
|
||||||
|
|||||||
Reference in New Issue
Block a user