aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdocker-compose.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 5af0778..62945b8 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,5 +1,3 @@
-version: '3'
-
services:
sytc:
build:
@@ -12,6 +10,8 @@ services:
- mariadb:mysql
volumes:
- ./config.json:/app/config.json
+ restart: unless-stopped
+
cron:
build:
context: .
@@ -25,8 +25,10 @@ services:
- sytc
volumes:
- ./config.json:/app/config.json
+ restart: unless-stopped
networks:
db-network:
- external:
- name: mariadb
+ external: true
+ name: mariadb
+