Browse Source

Update docker-compose.yml (#2394)

restart: always for turn and netmaker
Otherwise it will not survive a reboot.
pete1019 2 years ago
parent
commit
834cc893ab
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compose/docker-compose.yml

+ 2 - 1
compose/docker-compose.yml

@@ -6,7 +6,7 @@ services:
     container_name: netmaker
     container_name: netmaker
     image: gravitl/netmaker:$SERVER_IMAGE_TAG
     image: gravitl/netmaker:$SERVER_IMAGE_TAG
     env_file: ./netmaker.env
     env_file: ./netmaker.env
-    restart: on-failure
+    restart: always
     volumes:
     volumes:
       - dnsconfig:/root/config/dnsconfig
       - dnsconfig:/root/config/dnsconfig
       - sqldata:/root/data
       - sqldata:/root/data
@@ -96,6 +96,7 @@ services:
     network_mode: "host"
     network_mode: "host"
     volumes:
     volumes:
       - turn_server:/etc/config
       - turn_server:/etc/config
+    restart: always
 
 
 volumes:
 volumes:
   caddy_data: { } # runtime data for caddy
   caddy_data: { } # runtime data for caddy