Browse Source

Add automatic restarts

Peter Oertel 1 năm trước cách đây
mục cha
commit
9779e5f4ec
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      docker-compose.yml

+ 2 - 0
docker-compose.yml

@@ -6,6 +6,7 @@ services:
       - db
     ports:
       - "8000:8000"
+    restart: unless-stopped
   db:
     image: mysql:5.7
     ports:
@@ -14,3 +15,4 @@ services:
       MYSQL_ROOT_PASSWORD: root
     volumes:
       - ./db:/docker-entrypoint-initdb.d/:ro
+    restart: unless-stopped