Compare commits
1 Commits
ittools
...
xmpp-watch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f25c76a12a |
@@ -11,13 +11,20 @@ services:
|
|||||||
- ./data:/var/lib/prosody
|
- ./data:/var/lib/prosody
|
||||||
- ./certs:/etc/prosody/certs
|
- ./certs:/etc/prosody/certs
|
||||||
|
|
||||||
# One-time init: dumps certs from Traefik's acme.json and makes them readable
|
# Watches Traefik's acme.json and extracts certs into the shared volume
|
||||||
certs-init:
|
prosody-certs:
|
||||||
image: ldez/traefik-certs-dumper:latest
|
image: ldez/traefik-certs-dumper:latest
|
||||||
container_name: prosody-certs-init
|
container_name: prosody-certs
|
||||||
restart: "no"
|
restart: unless-stopped
|
||||||
entrypoint: /bin/sh
|
entrypoint: /bin/sh
|
||||||
command: -c "traefik-certs-dumper file --version v2 --source /traefik/acme.json --dest /output && chmod 644 /output/certs/*.crt /output/private/*.key"
|
command:
|
||||||
|
- "-c"
|
||||||
|
- |
|
||||||
|
printf '#!/bin/sh\nchmod 644 /output/certs/*.crt /output/private/*.key 2>/dev/null\nexit 0\n' > /tmp/on-cert-update.sh &&
|
||||||
|
chmod +x /tmp/on-cert-update.sh &&
|
||||||
|
traefik-certs-dumper file --version v2 --source /traefik/acme.json --dest /output &&
|
||||||
|
chmod 644 /output/certs/*.crt /output/private/*.key &&
|
||||||
|
exec traefik-certs-dumper file --watch --version v2 --source /traefik/acme.json --dest /output --post-hook /tmp/on-cert-update.sh
|
||||||
volumes:
|
volumes:
|
||||||
- ../../tools/wireguard/letsencrypt:/traefik:ro # Change this to cert path if not using same folder structure
|
- ../../tools/wireguard/letsencrypt:/traefik:ro # Change this to cert path if not using same folder structure
|
||||||
- ./certs:/output
|
- ./certs:/output
|
||||||
@@ -36,8 +43,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
prosody-init:
|
prosody-init:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
certs-init:
|
|
||||||
condition: service_completed_successfully
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik_portal:
|
traefik_portal:
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
services:
|
|
||||||
it-tools:
|
|
||||||
image: corentinth/it-tools:latest
|
|
||||||
container_name: it-tools
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- "7001:80"
|
|
||||||
networks:
|
|
||||||
- traefik_portal
|
|
||||||
|
|
||||||
networks:
|
|
||||||
traefik_portal:
|
|
||||||
external: true
|
|
||||||
Reference in New Issue
Block a user