Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
brilvio committed Jul 15, 2020
1 parent 25a53c7 commit c23f72b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ RUN npm install

COPY . .

CMD [ "pm2-runtime", "start", "ecosystem.config.js" ]
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
RUN chmod +x /wait

CMD [ "/wait", "&&", "pm2-runtime", "start", "ecosystem.config.js" ]
4 changes: 2 additions & 2 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ services:
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD}

api:
# TODO: wait for mongodb to be available...
image: entropychat.api
build: .
restart: on-failure
Expand All @@ -25,6 +24,7 @@ services:
ports:
- ${PORT}:${PORT}
environment:
WAIT_HOSTS: ${MONGO_HOST}:${MONGO_PORT}
PORT: ${PORT}
JWT_SECRET: ${JWT_SECRET}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
Expand All @@ -37,4 +37,4 @@ services:

volumes:
npm_cache:
node_modules:
node_modules:

0 comments on commit c23f72b

Please sign in to comment.