Skip to content

Commit

Permalink
Enable auto-restart for api and front container
Browse files Browse the repository at this point in the history
In case of DoS, the container will restart instead of it being down
until restarted manually.

As discussed in TFNS#179
  • Loading branch information
JJ-8 committed Aug 26, 2022
1 parent 44d9f22 commit 863e831
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
context: "./api"
networks:
- ctfnote
restart: always
environment:
PAD_CREATE_URL: http://hedgedoc:3000/new
PAD_SHOW_URL: /
Expand Down Expand Up @@ -35,6 +36,7 @@ services:
front:
networks:
- ctfnote
restart: always
build:
context: "./front"
depends_on:
Expand Down

0 comments on commit 863e831

Please sign in to comment.