From 84adf0c56888f613a0534e199a039734ac4b0431 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 4 Aug 2022 02:17:01 +0300 Subject: [PATCH] Use published docker image to run khoj service using docker-compose --- Dockerfile | 1 + docker-compose.yml | 10 +--------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3bb72ce8..d38a39af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # syntax=docker/dockerfile:1 FROM python:3.10-slim-bullseye +LABEL org.opencontainers.image.source https://github.com/debanjum/khoj # Install System Dependencies RUN apt-get update -y && \ diff --git a/docker-compose.yml b/docker-compose.yml index 82f86de3..01f0867c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,7 @@ version: "3.9" services: server: - build: - context: . - dockerfile: Dockerfile - args: - - PORT=8000 + image: ghcr.io/debanjum/khoj:latest ports: # If changing the local port (left hand side), no other changes required. # If changing the remote port (right hand side), @@ -29,9 +25,5 @@ services: # You can set these volumes to point to empty directories on host - ./tests/data/embeddings/:/data/embeddings/ - ./tests/data/models/:/data/models/ - deploy: - resources: - limits: - memory: 8g # Use 0.0.0.0 to explicitly set the host ip for the service on the container. https://pythonspeed.com/articles/docker-connection-refused/ command: --host="0.0.0.0" --port=8000 -c=config/khoj_sample.yml -vv