mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-04-30 08:12:26 +00:00
Ensure containers are brought backup when exiting on error
This is esp. important for the NodeJS (backend) container as Node will exit on any unhandled error, it is best practice to let the errored process crash and start a new one in its place. It this case we use docker to do that for us (`restart: always` policy)
This commit is contained in:
@ -3,6 +3,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: searxng.dockerfile
|
||||
restart: always
|
||||
expose:
|
||||
- 4000
|
||||
ports:
|
||||
@ -16,12 +17,17 @@ services:
|
||||
dockerfile: backend.dockerfile
|
||||
args:
|
||||
- SEARXNG_API_URL=null
|
||||
restart: always
|
||||
volumes:
|
||||
- "/Volumes/keys/headllamp/keys/:/var/keys/"
|
||||
- "${GOOGLE_APPLICATION_CREDENTIALS}:/var/keys/gcp_service_account.json"
|
||||
environment:
|
||||
SEARXNG_API_URL: 'http://searxng:8080'
|
||||
SUPER_SECRET_KEY: ${SUPER_SECRET_KEY}
|
||||
OPENAI: ${OPENAI}
|
||||
GROQ: ${GROQ}
|
||||
OLLAMA_API_URL: ${OLLAMA_API_URL}
|
||||
GOOGLE_APPLICATION_CREDENTIALS: /var/keys/gcp_service_account.json
|
||||
depends_on:
|
||||
- searxng
|
||||
expose:
|
||||
|
Reference in New Issue
Block a user