forked from sokrates-ai/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·115 lines (109 loc) · 2.95 KB
/
docker-compose.yml
File metadata and controls
executable file
·115 lines (109 loc) · 2.95 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
services:
#
#
#
#########################
# WORKSPACE 1
#########################
#
#
#
sk-workspace-redis:
image: redis:latest
container_name: sk-workspace-redis
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 4s
retries: 5
volumes:
- ./workspace_redis_data:/data
sk-workspace-caddy:
container_name: sk-workspace-caddy
image: ghcr.io/sokrates-ai/sk-workspace-caddy:latest
restart: unless-stopped
environment:
- "SK_BACKEND_HOST=http://sk-workspace-backend"
- "SK_BACKEND_PORT=8000"
- "SK_FRONTEND_HOST=http://sk-workspace-frontend"
- "SK_FRONTEND_PORT=3000"
ports:
- 7001:80
depends_on:
- sk-workspace-backend
- sk-workspace-frontend
sk-workspace-frontend:
container_name: sk-workspace-fe
image: ghcr.io/sokrates-ai/sk-workspace-fe:latest
restart: unless-stopped
sk-workspace-backend:
container_name: sk-workspace-be
image: ghcr.io/sokrates-ai/sk-workspace-be:latest
restart: unless-stopped
env_file:
- ./.workspace.env
environment:
- PLATFORM_HOST=sk-platform
- PLATFORM_PORT=80
- REDIS_HOST=sk-workspace-redis
- REDIS_PORT=6379
- RATE_LIMIT_SECONDS=10
- IMAGE_UPLOAD_PATH=/uploads
volumes:
- ./workspace_images:/uploads
depends_on:
- sk-workspace-redis
#
#
#
#########################
# PLATFORM
#########################
#
#
#
sk-platform:
container_name: sk-platform
image: ghcr.io/sokrates-ai/sk-platform:latest
ports:
- "8000:80"
volumes:
- ./learnhouse_data:/usr/learnhouse
env_file:
- ./extra/example-learnhouse-conf.env
environment:
- LEARNHOUSE_WORKSPACE_API_HOST=sk-workspace-backend
- LEARNHOUSE_WORKSPACE_API_PORT=8000
- LEARNHOUSE_WORKSPACE_EXTERNAL_BASE_URL=http://localhost:7001
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
db:
image: postgres:16-alpine
restart: always
environment:
- POSTGRES_USER=learnhouse
- POSTGRES_PASSWORD=learnhouse
- POSTGRES_DB=learnhouse
volumes:
- ./platform_postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U learnhouse"]
interval: 5s
timeout: 4s
retries: 5
redis:
image: redis:7.2.3
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 4s
retries: 5
volumes:
- ./platform_redis:/data
chromadb:
image: chromadb/chroma:0.5.16