From 1509a2c54b2a62bd0a8707824016df009fad45b1 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Sat, 20 Mar 2021 14:22:22 +0200 Subject: [PATCH] Initial working image --- README.md | 18 +++++++++--------- compose.yml | 26 ++++++++++++++------------ 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 7a04a8a..40616a7 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ -# Znc +# ZNC IRC bouncer • https://github.com/znc/znc -* **Category**: -* **Status**: -* **Image**: [`znc`](https://hub.docker.com/r/znc/znc) -* **Healthcheck**: -* **Backups**: -* **Email**: -* **Tests**: -* **SSO**: +* **Category**: Apps +* **Status**: ❹💣 +* **Image**: [`linuxserver/znc`](https://hub.docker.com/r/linuxserver/znc) +* **Healthcheck**: No +* **Backups**: No +* **Email**: No +* **Tests**: No +* **SSO**: No ## Basic usage diff --git a/compose.yml b/compose.yml index 662a96c..26e0406 100644 --- a/compose.yml +++ b/compose.yml @@ -3,7 +3,10 @@ version: "3.8" services: app: - image: nginx:1.19.2 + # Official ZNC image, requires running with --make-config first + #image: znc:1.8.2 + # 3rd-party linuxserver image: + image: ghcr.io/linuxserver/znc networks: - proxy deploy: @@ -11,21 +14,20 @@ services: condition: on-failure labels: - "traefik.enable=true" - - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" + - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=6501" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - ## Redirect from EXTRA_DOMAINS to DOMAIN - #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" - #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" - #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost"] - interval: 30s - timeout: 10s - retries: 10 - start_period: 1m + # Redirect from EXTRA_DOMAINS to DOMAIN + - "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" + - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" + - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" + volumes: + - "znc_data:/znc-data" networks: proxy: external: true + +volumes: + znc_data: