first working config

This commit is contained in:
knoflook 2022-09-17 17:30:57 +02:00
commit 576b503d08
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C
2 changed files with 40 additions and 0 deletions

4
.env.sample Normal file
View File

@ -0,0 +1,4 @@
TYPE=dokuwiki
DOMAIN=wiki.example.com
LETS_ENCRYPT_ENV=production

36
compose.yml Normal file
View File

@ -0,0 +1,36 @@
---
version: '3.8'
services:
app:
image: lscr.io/linuxserver/dokuwiki:version-2022-07-31a
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Amsterdam
volumes:
- dokuwiki_data:/config
networks:
- internal
- proxy
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.services.${STACK_NAME}_web.loadbalancer.server.port=80"
- "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}"
- "coop-cloud.${STACK_NAME}.web.version=0.0.1+2022-07-31a"
healthcheck:
test: ["CMD", "curl", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 10
start_period: 2m
networks:
proxy:
external: true
internal:
volumes:
dokuwiki_data: