Skip to content

Commit 5694278

Browse files
JJ-8XeR
authored andcommitted
Enable auto-restart for api and front container
In case of DoS, the container will restart instead of it being down until restarted manually. As discussed in #179
1 parent 51a7ce6 commit 5694278

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
context: "./api"
66
networks:
77
- ctfnote
8+
restart: always
89
environment:
910
PAD_CREATE_URL: http://hedgedoc:3000/new
1011
PAD_SHOW_URL: /
@@ -35,6 +36,7 @@ services:
3536
front:
3637
networks:
3738
- ctfnote
39+
restart: always
3840
build:
3941
context: "./front"
4042
depends_on:

0 commit comments

Comments
 (0)