-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
109 lines (108 loc) · 2.79 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
109 lines (108 loc) · 2.79 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
services:
# app:
# image: ghcr.io/sokrates-ai/sk-platform:1.0.0
# ports:
# - "8091:80"
# volumes:
# - .:/usr/learnhouse
# env_file:
# - ./extra/example-learnhouse-conf.env
# depends_on:
# db:
# condition: service_healthy
# redis:
# condition: service_healthy
db:
image: postgres:16-alpine
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_USER=learnhouse
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-local-development-only-db-password}
- POSTGRES_DB=learnhouse
volumes:
- sk-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
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 4s
retries: 5
mailpit:
image: axllent/mailpit:v1.27
restart: unless-stopped
ports:
- "1025:1025"
- "8025:8025"
environment:
- MP_MAX_MESSAGES=500
- MP_DATABASE=/data/mailpit.db
volumes:
- sk-mailpit:/data
chromadb:
image: chromadb/chroma:0.5.16
ports:
- "8000:8000"
collab:
build:
context: ./apps/collab
restart: unless-stopped
ports:
- "3001:3001"
- "3002:3002"
environment:
- NODE_ENV=development
- LOG_LEVEL=debug
- LOG_PRETTY=true
- COLLAB_WS_PORT=3001
- COLLAB_BRIDGE_PORT=3002
- COLLAB_BIND_ADDRESS=0.0.0.0
- COLLAB_INSTANCE_NAME=collab-dev
- COLLAB_REDIS_HOST=redis
- COLLAB_REDIS_PORT=6379
- "COLLAB_REDIS_PREFIX=collab:"
- "COLLAB_PERSIST_PREFIX=y:doc:"
- COLLAB_API_BASE_URL=http://host.docker.internal:1338/api
- COLLAB_STORE_DEBOUNCE_MS=3000
- COLLAB_STORE_MAX_DEBOUNCE_MS=15000
- COLLAB_DIRECT_CONN_IDLE_MS=1500
- COLLAB_BODY_LIMIT_BYTES=1048576
- SHARED_COLLAB_JWT_SECRET=${SHARED_COLLAB_JWT_SECRET:-local-development-only-collab-secret}
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
redis:
condition: service_healthy
lsp:
build:
context: ./apps/lsp
restart: unless-stopped
ports:
- "3011:3011"
environment:
- LSP_PROXY_PORT=3011
keycloak:
image: quay.io/keycloak/keycloak:25.0
command: ["start-dev", "--import-realm"]
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD:-local-development-only-keycloak-password}
ports:
- "8081:8080"
volumes:
- sk-keycloak:/opt/keycloak/data
- ./extra/keycloak/realm-learnhouse.json:/opt/keycloak/data/import/realm-learnhouse.json:ro
volumes:
sk-postgres:
sk-keycloak:
sk-mailpit: