-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (79 loc) · 2.36 KB
/
docker-compose.yml
File metadata and controls
84 lines (79 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
postgres:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-vyse}
POSTGRES_USER: ${POSTGRES_USER:-vyse}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-vyse}
ports:
- "${POSTGRES_PORT:-55432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-vyse} -d ${POSTGRES_DB:-vyse}"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
engine:
build:
context: .
dockerfile: engine/Dockerfile
restart: unless-stopped
environment:
VYSE_ENGINE_STORE__REDIS_URL: ${VYSE_ENGINE_STORE__REDIS_URL:-redis://redis:6379}
VYSE_ENGINE_STORE__DATABASE_URL: ${VYSE_ENGINE_STORE__DATABASE_URL:-postgres://vyse:vyse@postgres:5432/vyse}
VYSE_ENGINE_LLM__API_KEY: ${VYSE_ENGINE_LLM__API_KEY:-}
VYSE_ENGINE_LLM__PROVIDER: ${VYSE_ENGINE_LLM__PROVIDER:-ollama}
VYSE_ENGINE_LLM__MODEL: ${VYSE_ENGINE_LLM__MODEL:-tinyllama}
VYSE_ENGINE_LLM__OLLAMA_BASE_URL: ${VYSE_ENGINE_LLM__OLLAMA_BASE_URL:-http://host.docker.internal:11434}
VYSE_ENGINE_REKOR__ENABLED: ${VYSE_ENGINE_REKOR__ENABLED:-false}
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "50051:50051"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
gateway:
build:
context: .
dockerfile: gateway/Dockerfile
restart: unless-stopped
environment:
VYSE_AUTH_JWT_SECRET: ${VYSE_AUTH_JWT_SECRET}
VYSE_AUTH_ADMIN_PASSWORD: ${VYSE_AUTH_ADMIN_PASSWORD}
VYSE_AUTH_API_KEY: ${VYSE_AUTH_API_KEY}
VYSE_ENGINE_ADDRESS: ${VYSE_ENGINE_ADDRESS:-engine:50051}
VYSE_LOGGING_LEVEL: ${VYSE_LOGGING_LEVEL:-info}
VYSE_LOGGING_FORMAT: ${VYSE_LOGGING_FORMAT:-json}
ports:
- "8080:8080"
- "8081:8081"
depends_on:
engine:
condition: service_started
dashboard:
build:
context: ./dashboard
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:80"
depends_on:
gateway:
condition: service_started
volumes:
postgres_data: