Skip to content

Commit

Permalink
switching to node alpine & adding restart on failure restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
RmnRss committed Aug 5, 2020
1 parent 8da8ee9 commit 5ccf645
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ services:
- "1337:1337"
volumes:
- ./api:/srv/app
restart: "no"
restart: "on-failure"

next:
container_name: next
image: node:12
image: node:12-alpine
working_dir: /app
command: sh -c "npm install && npm run dev"
ports:
Expand All @@ -24,3 +24,4 @@ services:
- .:/app
depends_on:
- strapi
restart: "on-failure"

0 comments on commit 5ccf645

Please sign in to comment.