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