add restart config to docker-compose.yaml

This commit is contained in:
nash_su
2024-04-06 12:06:14 +08:00
parent bbb1105a68
commit 58d10193fe
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -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
```
+3 -1
View File
@@ -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'
max-file: '1'
restart: always