From 7fdc1bc1e96b1aec35a57667043b9dd508e02c41 Mon Sep 17 00:00:00 2001 From: Felix Riehm <mail@felixriehm.de> Date: Mon, 22 Jan 2024 15:37:51 +0100 Subject: [PATCH] make docker restart automatically --- docker/production/docker-compose.yml | 2 ++ docker/staging/docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docker/production/docker-compose.yml b/docker/production/docker-compose.yml index f0b7218..2f36d59 100644 --- a/docker/production/docker-compose.yml +++ b/docker/production/docker-compose.yml @@ -8,6 +8,7 @@ services: target: prod ports: - "3002:3000" + restart: always depends_on: api: condition: service_started @@ -21,5 +22,6 @@ services: - APP_ENVIRONMENT_FILE_DIR=$APP_ENVIRONMENT_FILE_DIR ports: - "8282:8080" + restart: always volumes: - ./data:/app/data \ No newline at end of file diff --git a/docker/staging/docker-compose.yml b/docker/staging/docker-compose.yml index f884efd..acb9ea7 100644 --- a/docker/staging/docker-compose.yml +++ b/docker/staging/docker-compose.yml @@ -8,6 +8,7 @@ services: target: staging ports: - "3001:3000" + restart: always depends_on: api: condition: service_started @@ -21,5 +22,6 @@ services: - APP_ENVIRONMENT_FILE_DIR=$APP_ENVIRONMENT_FILE_DIR ports: - "8181:8080" + restart: always volumes: - ./data:/app/data \ No newline at end of file -- GitLab