services/swarm/wiki.yaml
traveler 5e2763c115
Some checks are pending
Deploy on push / detect (push) Waiting to run
Deploy on push / deploy_swarm (push) Blocked by required conditions
Deploy on push / deploy_compose (push) Blocked by required conditions
,.m
2026-05-02 21:56:41 -05:00

132 lines
No EOL
3.4 KiB
YAML
Executable file

networks:
netgrimoire:
external: true
services:
wikijs-db:
image: postgres:16-alpine
command:
- postgres
- -c
- max_connections=50
- -c
- shared_buffers=128MB
- -c
- effective_cache_size=512MB
- -c
- work_mem=4MB
- -c
- maintenance_work_mem=64MB
- -c
- checkpoint_completion_target=0.9
- -c
- idle_in_transaction_session_timeout=60000
- -c
- statement_timeout=120000
networks:
- netgrimoire
environment:
TZ: America/Chicago
POSTGRES_DB: wiki
POSTGRES_USER: wikijs
POSTGRES_PASSWORD: F@lcon13
volumes:
- /data/nfs/znas/Docker/wikijs-db:/var/lib/postgresql/data
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 10
window: 60s
placement:
constraints:
- node.platform.arch != aarch64
- node.platform.arch != arm
labels:
gremlin.version: "2026-04-1"
gremlin.uid.exempt: "true"
gremlin.uid.reason: "Postgres requires UID 999 — PUID/PGID not supported"
gremlin.caddy.skip: "true"
gremlin.homepage.skip: "true"
gremlin.monitor.skip: "true"
diun.enable: "true"
wikijs:
image: requarks/wiki:2
networks:
- netgrimoire
environment:
TZ: America/Chicago
DB_TYPE: postgres
DB_HOST: wikijs-db
DB_PORT: "5432"
DB_USER: wikijs
DB_PASS: F@lcon13
DB_NAME: wiki
DB_POOL_MIN: 2
DB_POOL_MAX: 5
DB_POOL_ACQUIRETIMEOUTMILLIS: 60000
DB_POOL_CREATETIMEOUTMILLIS: 30000
DB_POOL_DESTROYTIMEOUTMILLIS: 5000
DB_POOL_IDLETIMEOUTMILLIS: 30000
PUID: "1964"
PGID: "1964"
volumes:
- /data/nfs/znas/Docker/wikijs/data:/wiki/data
- /data/nfs/znas/Docker/wikijs/repo:/wiki/repo
- /data/nfs/znas/Docker/wikijs/ssh:/wiki/ssh:ro
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 10
window: 60s
placement:
constraints:
- node.platform.arch != aarch64
- node.platform.arch != arm
labels:
gremlin.version: "2026-04-1"
gremlin.port: "3000"
caddy: wiki.netgrimoire.com
caddy.reverse_proxy: wikijs:3000
caddy.import_1: crowdsec
caddy.import_2: authentik
monitor.name: Wikijs
monitor.url: http://wikijs:3000
homepage.group: Documentation
homepage.name: Wiki
homepage.icon: wikijs.png
homepage.href: https://wiki.netgrimoire.com
homepage.description: Documentation Server
diun.enable: "true"
drawio:
image: jgraph/drawio:latest
networks:
- netgrimoire
environment:
TZ: America/Chicago
PUID: "1964"
PGID: "1964"
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 10
window: 60s
labels:
gremlin.version: "2026-04-1"
gremlin.port: "8080"
caddy: draw.netgrimoire.com
caddy.reverse_proxy: drawio:8080
caddy.import_1: crowdsec
caddy.import_2: authentik
monitor.name: Drawio
monitor.url: http://drawio:8080
homepage.group: Documentation
homepage.name: Draw Net
homepage.icon: draw-io.png
homepage.href: https://draw.netgrimoire.com
homepage.description: Draw Server
diun.enable: "true"