devika
devika copied to clipboard
Update Dockerfile and config.py to align with renamed sample.config.toml
This commit updates the Dockerfile and config.py to reference the newly renamed configuration file (from config.toml to sample.config.toml).
For me I modify the docker-compose.yml to add a link to config.toml with volume
devika-backend-engine:
build:
context: .
dockerfile: devika.dockerfile
expose:
- 1337
ports:
- 1337:1337
environment:
- OLLAMA_HOST=http://IP_OLLAMA_SERVER:11434
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:1337/ || exit 1"]
interval: 5s
timeout: 30s
retries: 5
start_period: 30s
volumes:
- /srv/docker-data/devika/config.toml:/home/nonroot/devika/config.toml
- devika-backend-dbstore:/home/nonroot/devika/db
networks:
- devika-subnetwork
and It's normal, https://github.com/stitionai/devika/pull/197 replace it by sample.config.toml. So you need to create config.toml before launch docker build. And my modification to docker-compose.yaml permit to modify the config whitout reconstruct the docker image
@rohittp0 Yes. It make sense.