Bläddra i källkod

fix: Docker fixes

NGPixel 8 år sedan
förälder
incheckning
f31dccab5f
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2 2
      docker-compose.yml
  2. 1 1
      npm/configs/config.docker.yml

+ 2 - 2
docker-compose.yml

@@ -3,13 +3,13 @@ services:
   wikidb:
     image: mongo
     ports:
-      - '27017'
+      - '27017:27017'
     command: '--smallfiles --logpath=/dev/null'
   wikijs:
     image: 'requarks/wiki:latest'
     links:
       - wikidb
     ports:
-      - '3000'
+      - '3000:3000'
     environment:
       - PORT=3000

+ 1 - 1
npm/configs/config.docker.yml

@@ -103,7 +103,7 @@ sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
 # Database Connection String
 # ---------------------------------------------------------------------
 
-db: mongodb://mongo:27017/wiki
+db: mongodb://wikidb:27017/wiki
 
 # ---------------------------------------------------------------------
 # Git Connection Info