[docker] docker-compose WiKi.js

docker-compose WiKi.js

참고페이지: https://docs.requarks.io/wiki/install/docker#using-docker-compose

 

wiki 디렉토리 생성 및 docker-compose.yml 파일생성

test@docker-test:~/Workspace$ mkdir wiki 
test@docker-test:~/Workspace/wiki$ vi docker-compose.yml
version: "3"
services:

  db:
    image: postgres:11-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: 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:
      - "80:3000"

volumes:
  db-data:

 

wikijs config.yml 파일 생성

sample 파일 : https://docs.requarks.io/install/docker

수정할 부분은 아래 내용참고

test@docker-test:~/Workspace/wiki$ vi config.yml

host: http://192.168.0.100

port: 3000

test@docker-test:~/Workspace/wiki$ docker-compose up -d --build
test@docker-test:~/Workspace/wiki$ docker ps
CONTAINER ID        IMAGE                COMMAND                  CREATED             STATUS              PORTS                            NAMES
2178f46ab155        requarks/wiki:2      "docker-entrypoint.s…"   56 minutes ago      Up 56 minutes       3443/tcp, 0.0.0.0:80->3000/tcp   wiki_wiki_1
56a292756816        postgres:11-alpine   "docker-entrypoint.s…"   56 minutes ago      Up 56 minutes       5432/tcp                         wiki_db_1

 

 

 

 

 

댓글 남기기