From 64da6f4553a71b07b33d13d6812a95962bb4c875 Mon Sep 17 00:00:00 2001 From: tobias Date: Sat, 13 Jul 2024 17:26:48 +0200 Subject: [PATCH] Restart nextjs container in prod --- docker-compose.prod.yml | 1 + docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index e693f44..88168c2 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -4,6 +4,7 @@ version: "3.8" services: nextjs: image: git.autonomic.zone/autonomic-cooperative/nextload:latest + restart: unless-stopped environment: - "NAME=${STACK_NAME}" - "PAYLOAD_SECRET_FILE=/run/secrets/payload_secret" diff --git a/docker-compose.yml b/docker-compose.yml index 0e0c35d..84fd7bb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: nextjs: image: git.autonomic.zone/autonomic-cooperative/nextload-dev:latest - restart: always + restart: unless-stopped build: context: ./ target: dev @@ -27,7 +27,7 @@ services: mongo: image: mongo:6.0.5 - restart: always + restart: unless-stopped volumes: - mongo:/data/db command: