This commit is contained in:
2025-07-29 18:32:41 +01:00
parent 53f85a9378
commit 550616e187
2 changed files with 47 additions and 20 deletions

View File

@@ -11,7 +11,7 @@ services:
container_name: nginx-proxy-manager container_name: nginx-proxy-manager
ports: ports:
- "80:80" - "80:80"
- "81:81" # Admin interface - "81:81" # Admin interface (Do not expose)
- "443:443" - "443:443"
environment: environment:
- DISABLE_IPV6=true - DISABLE_IPV6=true
@@ -101,7 +101,7 @@ services:
networks: networks:
- server-network - server-network
# --- N8n Automation --- # --- N8N Automation ---
n8n: # :5678 n8n: # :5678
image: n8nio/n8n:latest image: n8nio/n8n:latest
restart: unless-stopped restart: unless-stopped
@@ -192,25 +192,40 @@ services:
privileged: true privileged: true
# network_mode: host # network_mode: host
ports: ports:
- "6052:6052" - "6052:6052" # Web interface
# # --- Prosody XMPP Server --- # --- ejabberd XMPP Client ---
# prosody: # :5280 ejabberd: # :5280 (Admin interface)
# image: prosody/prosody:latest image: ejabberd/ecs:latest
# container_name: prosody container_name: ejabberd
# restart: unless-stopped restart: unless-stopped
# ports: depends_on:
# - "5222:5222" # XMPP client connections - ejabberd-db
# - "5269:5269" # XMPP server-to-server connections volumes:
# volumes: - ${EJABBERD_CONF}/ejabberd.yml:/opt/ejabberd/conf/ejabberd.yml
# - ${PROSODY_CONFIG}:/etc/prosody ports:
# - ${PROSODY_LOGS}:/var/log/prosody - "5222:5222" # XMPP client
# - ${PROSODY_MODULES}:/usr/lib/prosody-modules - "5223:5223" # XMPP client (TLS)
# networks: - "5269:5269" # XMPP server-to-server (in)
# - server-network - "5443:5443" # HTTP upload
- "5478:5478/udp" # STUN/TURN
volumes: - "1883:1883" # MQTT
model-cache: networks:
- server-network
- ejabberd-network
ejabberd-db: # Edit DB settings here: /mnt/md0/ejabberd/conf/ejabberd.yml
image: postgres:latest
container_name: ejabberd-db
restart: unless-stopped
environment:
- POSTGRES_DB=ejabberd
- POSTGRES_USER=ejabberd
- POSTGRES_PASSWORD=${EJABBERD_DB_PASSWORD}
volumes:
- ${EJABBERD_DB_DATA}:/var/lib/postgresql/data
networks:
- ejabberd-network
networks: networks:
server-network: server-network:
@@ -219,3 +234,6 @@ networks:
driver: bridge driver: bridge
ha-network: ha-network:
driver: bridge driver: bridge
ejabberd-network:
driver: bridge

9
server/notes.md Normal file
View File

@@ -0,0 +1,9 @@
# How to change public IP
- Edit `turn_ipv4_address:` at `/mnt/md0/ejabberd/conf/ejabberd.yml`.
- Point domain to the new IP and all subdomains.
# Change private IP
- Edit port forward settings to point to the new IP.
# Configure port forward from scratch
- Forward every port explicitly declared in `ports` field of every container.