Skip to content

Commit

Permalink
Docker setup: Make BARTOC service wait for JSKOS Server
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Oct 15, 2024
1 parent 1ce3491 commit 9e07c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ RUN git clone https://github.com/gbv/jskos-server.git && cd jskos-server && npm
RUN mkdir /config

# Use pm2 to run app
RUN npm i -g pm2
RUN npm i -g pm2 wait-on

CMD ["bash", "entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker/ecosystem.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "bartoc",
"cwd": "./bartoc",
"script": "./server.js",
"script": "wait-on http://localhost:3000/status && node ./server.js",
"env": {
"NODE_ENV": "production"
}
Expand Down

0 comments on commit 9e07c1e

Please sign in to comment.