Остання активність 2 days ago

Версія 0238a849e4b920d07c0a75e2b5359364886a4c9f

docker-compose.yml Неформатований
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 - ./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
17 snikket_server:
18 container_name: snikket
19 image: snikket/snikket-server:stable
20 network_mode: host
21 volumes:
22 - ./data:/snikket
23 - /some/abs/path/etc/prosody/certs/domain.tld.key:/etc/prosody/certs/domain.tld.key
24 - /some/abs/path/etc/prosody/certs/domain.tld.crt:/etc/prosody/certs/domain.tld.crt
25 - /some/abs/path/etc/sv/prosody/wait-for-certs:/etc/sv/prosody/wait-for-certs
26 env_file: snikket.conf
27 restart: "unless-stopped"
wait-for-certs Неформатований
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