0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Wiki.jsを使った

Posted at

Dockerを使うと超簡単でした。
wikiは、もう、これでいいんじゃないかと思う。

個人的にだったら、おしゃれアクションがちょっと嫌なのと、node.jsが好きじゃないので、MediaWikiを使うと思う。

ファイル1つとDocker compose 環境を用意するだけです。

~/docker/wiki-js/docker-compose.yml

# docker compose up -d
# https://localhost:3000
services:

  db:
    image: postgres:15-alpine
    environment:
      POSTGRES_DB: wiki
      POSTGRES_PASSWORD: wikijsrocks
      POSTGRES_USER: wikijs
    logging:
      driver: none
    restart: unless-stopped
    volumes:
      - db-data:/var/lib/postgresql/data

  wiki:
    image: ghcr.io/requarks/wiki:2
    depends_on:
      - db
    environment:
      DB_TYPE: postgres
      DB_HOST: db
      DB_PORT: 5432
      DB_USER: wikijs
      DB_PASS: wikijsrocks
      DB_NAME: wiki
    restart: unless-stopped
    ports:
      - "3000:3000"

# administrator email : admin@local.local
# password : password

volumes:
  db-data:
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?