Update default docker compose configuration with Khoj local mode

This commit is contained in:
sabaimran
2023-11-14 12:21:26 -08:00
parent 8c36079f74
commit 20ce3d0c78
2 changed files with 51 additions and 27 deletions

View File

@@ -10,7 +10,15 @@ services:
POSTGRES_DB: postgres
volumes:
- khoj_db:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 10s
retries: 5
server:
depends_on:
database:
condition: service_healthy
# Use the following line to use the latest version of khoj. Otherwise, it will build from source.
image: ghcr.io/khoj-ai/khoj:latest
# Uncomment the following line to build from source. This will take a few minutes. Comment the next two lines out if you want to use the offiicial image.
@@ -47,9 +55,11 @@ services:
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
- GOOGLE_CLIENT_SECRET=bar
- GOOGLE_CLIENT_ID=foo
command: --host="0.0.0.0" --port=42110 -vv
- KHOJ_DJANGO_SECRET_KEY=secret
- KHOJ_DEBUG=True
- ADMIN_EMAIL=username@example.com
- ADMIN_PASSWORD=password
command: --host="0.0.0.0" --port=42110 -vv --anonymous-mode
volumes: