diff --git a/docker-compose-build.yml b/docker-compose-build.yml
index c06316bbc93d2d938b155c6b41d8928327c34594..4fba3fa714d25ea9540a4e19d2bee215025883cc 100644
--- a/docker-compose-build.yml
+++ b/docker-compose-build.yml
@@ -3,6 +3,7 @@ version: '2.1'
 services:
   url_shorter:
     build: .
+    restart: unless-stopped
     volumes:
       - url_shorter_db:/app/db #Used to store the database. You can replace the name before the ":" with a path that will used to store the data
     ports:
@@ -23,4 +24,4 @@ services:
       - passwordToShort= #Insert here a password, if you wan't that only you can short links.
       - cookieNotice=1 #If you don't want to see the cookie notice set this to 0. Cookies are only used for login.
 volumes:
-  url_shorter_db:
\ No newline at end of file
+  url_shorter_db:
diff --git a/docker-compose.yml b/docker-compose.yml
index c2a9ab833416fffe9e0fcd05cf9fc6029623cf23..7c6d2242fd6940570dc516e08643508aff1b7c4b 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,27 +1,28 @@
-#This is the production compose file, if you want to develop use the docker-compose-build file.
-version: '2.1'
-services:
-  url_shorter:
-    image: gitlab.jonasled.de/jonasled/url_shorter_docker:latest
-    volumes:
-      - url_shorter_db:/app/db #Used to store the database. You can replace the name before the ":" with a path that will used to store the data
-    ports:
-      - "5000:5000"
-    environment:
-      - domains= #List of domains (with port if not 80/443) seperated with ";"
-      - show_build_date=0 #Normaly disable this.
-      - production=1 #You should only disable this for debugging
-      - url_scheme=https #If you use a reverse Proxy with https set this to https
-      - recaptcha_private= #Please enter here your private Key for google recaptcha
-      - recaptcha_public= #Please enter here your public Key for google recaptcha
-      - host=0.0.0.0 #With this variable you can set the access ip range. 127.0.0.1 means you can only access it from the local network and 0.0.0.0 means everyone can access it.
-      - login=o #set this to google or github if you want to enable the oauth login. If you do so, you also don't have to fill in the oauth credentials below. 
-      - GITHUB_CLIENT_ID= #To get the github keys visit https://github.com/settings/developers and register a new oauth application. The callback path is /user/github-callback
-      - GITHUB_CLIENT_SECRET= 
-      - GOOGLE_CLIENT_ID=
-      - GOOGLE_CLIENT_SECRET=
-      - passwordToShort= #Insert here a password, if you wan't that only you can short links.
-      - cookieNotice=1 #If you don't want to see the cookie notice set this to 0. Cookies are only used for login.
-volumes:
-  url_shorter_db:
-    
\ No newline at end of file
+#This is the production compose file, if you want to develop use the docker-compose-build file.
+version: '2.1'
+services:
+  url_shorter:
+    image: gitlab.jonasled.de/jonasled/url_shorter_docker:latest
+    restart: unless-stopped
+    volumes:
+      - url_shorter_db:/app/db #Used to store the database. You can replace the name before the ":" with a path that will used to store the data
+    ports:
+      - "5000:5000"
+    environment:
+      - domains= #List of domains (with port if not 80/443) seperated with ";"
+      - show_build_date=0 #Normaly disable this.
+      - production=1 #You should only disable this for debugging
+      - url_scheme=https #If you use a reverse Proxy with https set this to https
+      - recaptcha_private= #Please enter here your private Key for google recaptcha
+      - recaptcha_public= #Please enter here your public Key for google recaptcha
+      - host=0.0.0.0 #With this variable you can set the access ip range. 127.0.0.1 means you can only access it from the local network and 0.0.0.0 means everyone can access it.
+      - login=o #set this to google or github if you want to enable the oauth login. If you do so, you also don't have to fill in the oauth credentials below. 
+      - GITHUB_CLIENT_ID= #To get the github keys visit https://github.com/settings/developers and register a new oauth application. The callback path is /user/github-callback
+      - GITHUB_CLIENT_SECRET= 
+      - GOOGLE_CLIENT_ID=
+      - GOOGLE_CLIENT_SECRET=
+      - passwordToShort= #Insert here a password, if you wan't that only you can short links.
+      - cookieNotice=1 #If you don't want to see the cookie notice set this to 0. Cookies are only used for login.
+volumes:
+  url_shorter_db:
+