requarks / wiki

Wiki.js | A modern and powerful wiki app built on Node.js
https://js.wiki
GNU Affero General Public License v3.0
24.25k stars 2.68k forks source link

New docker user, sync with gitlab fail on restart #476

Closed kopax closed 6 years ago

kopax commented 6 years ago

Actual behavior

  1. I have started a gitlab sync wiki once, and recreated my container, the sync is gone and we have to start over the wiki. Repo will remain unsync.
  2. I have also disabled mathjax and I can't list uploaded file.

Is there anything else to configure in order to use docker ? This is my docker-compose:

version: '3'
services:
  wikidb:
    image: mongo
    ports:
      - 27017:27017
    command: '--smallfiles --bind_ip wikidb'
    environment:
      - 'MONGO_LOG_DIR=/dev/null'
    volumes:
      - ./data/mongo:/data/db
  wikijs:
    image: 'requarks/wiki:latest'
    links:
      - wikidb
    depends_on:
      - wikidb
    ports:
      - 80:3000
    environment:
      WIKI_ADMIN_EMAIL: postmaster@example.com
    volumes:
      - ./config.yml:/var/wiki/config.yml
      - ./git.pem:/etc/wiki/keys/git.pem
      - ./repo:/repo
      - ./data:/data
      - ./logs:/logs
NGPixel commented 6 years ago

Have you looked at the logs? Is there any error being reported?

One likely issue is your mongo container isn't ready by the time the wikijs container loads.

kopax commented 6 years ago

Sorry, we solved this before, I didn't realise this was still open.