103 lines
2.4 KiB
YAML
103 lines
2.4 KiB
YAML
version: "3.8"
|
|
|
|
networks:
|
|
netgrimoire:
|
|
external: true
|
|
|
|
services:
|
|
wikijs-db:
|
|
image: postgres:16-alpine
|
|
networks:
|
|
- netgrimoire
|
|
environment:
|
|
TZ: America/Chicago
|
|
POSTGRES_DB: wiki
|
|
POSTGRES_USER: wikijs
|
|
POSTGRES_PASSWORD: F@lcon13
|
|
volumes:
|
|
- /DockerVol/wikijs-db:/var/lib/postgresql/data
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == dockerpi
|
|
- node.labels.cpu == arm
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
max_attempts: 10
|
|
window: 60s
|
|
labels:
|
|
diun.enable: "true"
|
|
|
|
wikijs:
|
|
image: requarks/wiki:2
|
|
networks:
|
|
- netgrimoire
|
|
# Run as your default container identity
|
|
user: "1964:1964"
|
|
environment:
|
|
TZ: America/Chicago
|
|
DB_TYPE: postgres
|
|
DB_HOST: wikijs-db
|
|
DB_PORT: "5432"
|
|
DB_USER: wikijs
|
|
DB_PASS: F@lcon13
|
|
DB_NAME: wiki
|
|
volumes:
|
|
- /DockerVol/wikijs/data:/wiki/data
|
|
- /DockerVol/wikijs/repo:/wiki/repo
|
|
- /DockerVol/wikijs/ssh:/wiki/ssh:ro
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == dockerpi
|
|
- node.labels.cpu == arm
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
max_attempts: 10
|
|
window: 60s
|
|
labels:
|
|
diun.enable: "true"
|
|
|
|
# Caddy (adjust hostnames to your domain)
|
|
caddy: wiki.netgrimoire.com
|
|
caddy.reverse_proxy: "{{upstreams 3000}}"
|
|
|
|
# Kuma labels (your preferred pattern)
|
|
kuma.wikijs.http.name: "Wiki.js"
|
|
kuma.wikijs.http.url: "https://wiki.netgrimoire.com"
|
|
|
|
drawio:
|
|
image: jgraph/drawio:latest
|
|
networks:
|
|
- netgrimoire
|
|
user: "1964:1964"
|
|
environment:
|
|
TZ: America/Chicago
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == dockerpi
|
|
- node.labels.cpu == arm
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
max_attempts: 10
|
|
window: 60s
|
|
labels:
|
|
diun.enable: "true"
|
|
|
|
# Caddy (adjust hostnames to your domain)
|
|
caddy: draw.netgrimoire.com
|
|
caddy.reverse_proxy: "{{upstreams 8080}}"
|
|
|
|
# Kuma labels
|
|
kuma.drawio.http.name: "draw.io"
|
|
kuma.drawio.http.url: "https://draw.netgrimoire.com"
|