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: