Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.7.3/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: