Update compose to run reflector locally

This commit is contained in:
2025-01-23 15:30:56 +01:00
parent 986f063857
commit 8d9aaeab36
3 changed files with 8 additions and 44 deletions

View File

@@ -1,4 +1,3 @@
version: "3.9"
services: services:
server: server:
build: build:
@@ -6,16 +5,22 @@ services:
ports: ports:
- 1250:1250 - 1250:1250
volumes: volumes:
- model-cache:/root/.cache - ./server/data/:/app/data/
env_file:
- ./server/.env
environment: environment:
ENTRYPOINT: server ENTRYPOINT: server
worker: worker:
build: build:
context: server context: server
volumes: volumes:
- model-cache:/root/.cache - ./server/data/:/app/data/
env_file:
- ./server/.env
environment: environment:
ENTRYPOINT: worker ENTRYPOINT: worker
redis: redis:
image: redis:7.2 image: redis:7.2
ports: ports:
@@ -31,6 +36,3 @@ services:
- ./www:/app/ - ./www:/app/
env_file: env_file:
- ./www/.env.local - ./www/.env.local
volumes:
model-cache:

View File

@@ -1,27 +0,0 @@
version: "3.9"
services:
server:
build:
context: .
ports:
- 1250:1250
volumes:
- model-cache:/root/.cache
environment:
ENTRYPOINT: server
REDIS_HOST: redis
worker:
build:
context: .
volumes:
- model-cache:/root/.cache
environment:
ENTRYPOINT: worker
REDIS_HOST: redis
redis:
image: redis:7.2
ports:
- 6379:6379
volumes:
model-cache:

View File

@@ -1,11 +0,0 @@
version: "3.9"
services:
server:
build:
context: .
ports:
- 80:80
environment:
LLM_URL: "${LLM_URL}"
volumes:
- model-cache:/root/.cache