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:
parent
ebbe18ab45
commit
48018990be
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue