Add restart on-failure policy

This commit is contained in:
Mayank Chhabra 2023-08-17 04:17:47 +07:00
parent 70eb9e0176
commit bb8e5fccaa
3 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,7 @@ services:
build:
context: ./api
dockerfile: 13B.Dockerfile
restart: on-failure
environment:
MODEL: '/models/llama-2-13b-chat.bin'
@ -13,6 +14,7 @@ services:
image: 'ghcr.io/getumbrel/llama-gpt-ui:latest'
ports:
- 3000:3000
restart: on-failure
environment:
- 'OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXX'
- 'OPENAI_API_HOST=http://llama-gpt-api:8000'

View File

@ -6,6 +6,7 @@ services:
build:
context: ./api
dockerfile: 70B.Dockerfile
restart: on-failure
environment:
MODEL: '/models/llama-2-70b-chat.bin'
@ -13,6 +14,7 @@ services:
image: 'ghcr.io/getumbrel/llama-gpt-ui:latest'
ports:
- 3000:3000
restart: on-failure
environment:
- 'OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXX'
- 'OPENAI_API_HOST=http://llama-gpt-api:8000'

View File

@ -6,13 +6,15 @@ services:
build:
context: ./api
dockerfile: Dockerfile
restart: on-failure
environment:
MODEL: '/models/llama-2-7b-chat.bin'
llama-gpt-ui:
image: ghcr.io/getumbrel/llama-gpt-ui
image: 'ghcr.io/getumbrel/llama-gpt-ui:latest'
ports:
- 3000:3000
restart: on-failure
environment:
- 'OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXX'
- 'OPENAI_API_HOST=http://llama-gpt-api:8000'