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
<!-- metadata -->
* **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
<!-- endmetadata -->
## Basic usage

View File

@ -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: