Skip to content

Commit ca4992b

Browse files
committed
restart base containers only on-failure(not always)
1 parent c31c8e5 commit ca4992b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
build: ./hackerlab
44
container_name: scl-hackerlab
55
hostname: hackerlab
6-
restart: always
6+
restart: on-failure
77
volumes:
88
- ./hackerlab/data:/data
99
ports:
@@ -16,7 +16,7 @@ services:
1616
build: ./dashboard
1717
container_name: scl-dashboard
1818
hostname: dashboard
19-
restart: always
19+
restart: on-failure
2020
ports:
2121
- "127.0.0.1:80:80"
2222
- "127.0.0.1:8080:8080"
@@ -39,7 +39,7 @@ services:
3939
container_name: scl-ollama
4040
volumes:
4141
- ./ollama:/root/.ollama
42-
restart: always
42+
restart: on-failure
4343
networks:
4444
playground-net:
4545
ipv4_address: 172.20.0.100

0 commit comments

Comments
 (0)