From 58d10193fea7680a5da4dcf9e3003acd7e2c6b10 Mon Sep 17 00:00:00 2001 From: nash_su Date: Sat, 6 Apr 2024 12:06:14 +0800 Subject: [PATCH] add restart config to docker-compose.yaml --- README.md | 4 ++-- docker-compose.yaml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a8a2985..b506add 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ This project is still in its very early days. Expect some bugs. ```bash git clone https://github.com/nashsu/FreeAskInternet.git cd ./FreeAskInternet -docker-compose up +docker-compose up -d ``` 🎉 You should now be able to open the web interface on http://localhost:3000. Nothing else is exposed by default. @@ -51,7 +51,7 @@ cd ./FreeAskInternet git pull docker compose rm backend docker image rm nashsu/free_ask_internet -docker-compose up +docker-compose up -d ``` diff --git a/docker-compose.yaml b/docker-compose.yaml index 5b4e3fb..4e5870a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -17,6 +17,7 @@ services: CUSTOM_MODELS: "-all,+gpt-3.5-turbo" depends_on: - freegpt35 + restart: always freegpt35: image: missuo/freegpt35:latest @@ -38,4 +39,5 @@ services: driver: 'json-file' options: max-size: '1m' - max-file: '1' \ No newline at end of file + max-file: '1' + restart: always