Dernière activité 1 day ago

docker-compose.yml Brut
1services:
2 snikket_proxy:
3 container_name: snikket-proxy
4 image: snikket/snikket-web-proxy:stable
5 env_file: snikket.conf
6 network_mode: host
7 volumes:
8 - snikket_data:/snikket
9 restart: "unless-stopped"
10 snikket_portal:
11 container_name: snikket-portal
12 image: snikket/snikket-web-portal:stable
13 network_mode: host
14 env_file: snikket.conf
15 restart: "unless-stopped"
16 snikket_server:
17 container_name: snikket
18 image: snikket/snikket-server:stable
19 network_mode: host
20 volumes:
21 - snikket_data:/snikket
22 - /some/abs/path/etc/prosody/certs/domain.tld.key:/etc/prosody/certs/domain.tld.key
23 - /some/abs/path/etc/prosody/certs/domain.tld.crt:/etc/prosody/certs/domain.tld.crt
24 - /some/abs/path/etc/sv/prosody/wait-for-certs:/etc/sv/prosody/wait-for-certs
25 env_file: snikket.conf
26 restart: "unless-stopped"
27
28volumes:
29 snikket_data:
wait-for-certs Brut
1#!/bin/sh -e
2
3CERT_PATH_LE_LIVE="/snikket/letsencrypt/live/$SNIKKET_DOMAIN_ASCII"
4CERT_PATH="/etc/prosody/certs/$SNIKKET_DOMAIN.crt"
5
6check_cert_path() {
7 if test -f "$CERT_PATH"; then
8 exit 0;
9 fi
10}
11
12check_cert_path_le_live() {
13 if test -d "$CERT_PATH_LE_LIVE"; then
14 prosodyctl --root cert import /snikket/letsencrypt/live
15 check_cert_path
16 fi
17}
18
19check_cert_path()
20
21check_cert_path_le_live()
22
23while sleep 10; do
24 check_cert_path_le_live()
25done