WikiJS unter Docker
Erstellt folgende Verzeichnisse:
sudo mkdir /docker/13_Wikijs sudo mkdir /docker/13_Wikijs/db sudo mkdir /docker/13_Wikijs/app sudo chown -R 1000:1000 /docker/13_Wikijs/app
Danach könnt ihr das Compose-Skript ausrollen.
version: "3" services: db: image: postgres:15-alpine container_name: 13_Wikijs_DB environment: POSTGRES_DB: wiki POSTGRES_PASSWORD: 6ASmCD2ztBgXkyARApF24bkwX9QuG POSTGRES_USER: wikijs logging: driver: "none" restart: unless-stopped volumes: - /docker/13_Wikijs/db:/var/lib/postgresql/data networks: wikijs-nw: ipv4_address: 172.18.13.11 wiki: image: ghcr.io/requarks/wiki:2 container_name: 13_Wikijs depends_on: - db environment: DB_TYPE: postgres DB_HOST: db DB_PORT: 5432 DB_USER: wikijs DB_PASS: 6ASmCD2ztBgXkyARApF24bkwX9QuG DB_NAME: wiki volumes: - /docker/13_Wikijs/app:/app restart: unless-stopped ports: - "30212:3000" networks: wikijs-nw: ipv4_address: 172.18.13.12 networks: wikijs-nw: driver: bridge ipam: config: - subnet: 172.18.13.0/24 gateway: 172.18.13.1