From ca4992bb7803cb7a00205fb73e43f4d1a97ebdf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=98epa?= Date: Fri, 20 Dec 2024 13:45:38 +0100 Subject: [PATCH] restart base containers only on-failure(not always) --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index da61912..2a8247c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ services: build: ./hackerlab container_name: scl-hackerlab hostname: hackerlab - restart: always + restart: on-failure volumes: - ./hackerlab/data:/data ports: @@ -16,7 +16,7 @@ services: build: ./dashboard container_name: scl-dashboard hostname: dashboard - restart: always + restart: on-failure ports: - "127.0.0.1:80:80" - "127.0.0.1:8080:8080" @@ -39,7 +39,7 @@ services: container_name: scl-ollama volumes: - ./ollama:/root/.ollama - restart: always + restart: on-failure networks: playground-net: ipv4_address: 172.20.0.100