-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.27 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
# YokeBot — Docker Compose (Self-Hosted)
# Usage:
# cp .env.example .env # Edit with your API keys
# docker compose up -d
#
# Update:
# git pull
# docker compose up -d --build
services:
engine:
build: ./packages/engine
ports:
- "3001:3001"
env_file: .env
environment:
- YOKEBOT_DATA_DIR=/app/data
- YOKEBOT_SKILLS_DIR=/app/skills
- CORS_ALLOWED_ORIGINS=http://localhost:3000
- DATABASE_URL=postgresql://yokebot:${POSTGRES_PASSWORD}@postgres:5432/yokebot
volumes:
- yokebot-data:/app/data
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
dashboard:
build:
context: .
dockerfile: packages/dashboard/Dockerfile
args:
VITE_ENGINE_URL: http://localhost:3001
ports:
- "3000:80"
restart: unless-stopped
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_DB: yokebot
POSTGRES_USER: yokebot
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
volumes:
- yokebot-pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U yokebot"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
yokebot-data:
yokebot-pg: