From a78bfb69d964e51af2f976dd6fde2fe35a0e1a3d Mon Sep 17 00:00:00 2001 From: Angel Garcia <32900272+a-garcia-alvarez@users.noreply.github.com> Date: Sun, 25 Oct 2020 23:58:37 +0100 Subject: [PATCH] Update docker-compose.yml (#4) -Change version to 2 so that we can use it with older versions -Change restart condition of containers --- docker-compose.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 32cebd1..ace5e3f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,6 @@ -version: "3.4" +version: "2" services: - jikan-rest-api: build: context: jikan @@ -12,8 +11,8 @@ services: - "9001:80" networks: - default - restart: always + restart: unless-stopped jikan-redis: image: redis - restart: always + restart: unless-stopped