Initial working image

This commit is contained in:
3wc 2021-03-20 14:22:22 +02:00
parent 6849d4c411
commit 1509a2c54b
2 changed files with 23 additions and 21 deletions

View File

@ -1,16 +1,16 @@
# Znc # ZNC
IRC bouncer • https://github.com/znc/znc IRC bouncer • https://github.com/znc/znc
<!-- metadata --> <!-- metadata -->
* **Category**: * **Category**: Apps
* **Status**: * **Status**: ❹💣
* **Image**: [`znc`](https://hub.docker.com/r/znc/znc) * **Image**: [`linuxserver/znc`](https://hub.docker.com/r/linuxserver/znc)
* **Healthcheck**: * **Healthcheck**: No
* **Backups**: * **Backups**: No
* **Email**: * **Email**: No
* **Tests**: * **Tests**: No
* **SSO**: * **SSO**: No
<!-- endmetadata --> <!-- endmetadata -->
## Basic usage ## Basic usage

View File

@ -3,7 +3,10 @@ version: "3.8"
services: services:
app: 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: networks:
- proxy - proxy
deploy: deploy:
@ -11,21 +14,20 @@ services:
condition: on-failure condition: on-failure
labels: labels:
- "traefik.enable=true" - "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}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN # Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" - "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.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
healthcheck: volumes:
test: ["CMD", "curl", "-f", "http://localhost"] - "znc_data:/znc-data"
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
networks: networks:
proxy: proxy:
external: true external: true
volumes:
znc_data: