Browse Source

Merge pull request #1816 from Worteks/devel

Change Run User for Openshift compliance
Lauri Ojansivu 7 years ago
parent
commit
d1400f48c3
2 changed files with 3 additions and 2 deletions
  1. 2 1
      Dockerfile
  2. 1 1
      docker-compose.yml

+ 2 - 1
Dockerfile

@@ -144,7 +144,8 @@ RUN \
     rm -R /home/wekan/app_build && \
     rm -R /home/wekan/app_build && \
     rm /home/wekan/install_meteor.sh
     rm /home/wekan/install_meteor.sh
 
 
-ENV PORT=80
+ENV PORT=8080
 EXPOSE $PORT
 EXPOSE $PORT
+USER wekan
 
 
 CMD ["node", "/build/main.js"]
 CMD ["node", "/build/main.js"]

+ 1 - 1
docker-compose.yml

@@ -33,7 +33,7 @@ services:
         - METEOR_EDGE=${METEOR_EDGE}
         - METEOR_EDGE=${METEOR_EDGE}
         - USE_EDGE=${USE_EDGE}
         - USE_EDGE=${USE_EDGE}
     ports:
     ports:
-      - 80:80
+      - 8080:80
     environment:
     environment:
       - MONGO_URL=mongodb://wekandb:27017/wekan
       - MONGO_URL=mongodb://wekandb:27017/wekan
       - ROOT_URL=http://localhost
       - ROOT_URL=http://localhost