-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
51 lines (46 loc) · 1.59 KB
/
Copy pathcompose.yaml
File metadata and controls
51 lines (46 loc) · 1.59 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
# KAiOSS Komplett-Stack — läuft mit `podman-compose up -d` und `docker compose up -d`.
# SurrealDB ist auf v3.0.5 gepinnt (siehe docs/adr/ADR-001-surrealdb-version-pinning.md).
# Demo-Daten: db/init_clean.surql (Schema + Permissions) + db/seed.surql (Demo-Projekte).
services:
surrealdb:
image: docker.io/surrealdb/surrealdb:v3.0.5
command: start --user root --pass root --bind 0.0.0.0:8000 surrealkv://data/kaioss
ports:
- "8000:8000"
volumes:
- kaioss-data:/data
healthcheck:
test: ["CMD", "/surreal", "isready", "--endpoint", "http://localhost:8000"]
interval: 3s
timeout: 2s
retries: 10
# Einmalige Init-Jobs (Image hat keine Shell — restart:on-failure ersetzt Warteschleife)
db-schema:
image: docker.io/surrealdb/surrealdb:v3.0.5
command: import --endpoint http://surrealdb:8000 --username root --password root --namespace kaioss --database kaioss /import/init_clean.surql
volumes:
- ./db:/import:ro
depends_on:
surrealdb:
condition: service_healthy
restart: on-failure:5
db-seed:
image: docker.io/surrealdb/surrealdb:v3.0.5
command: import --endpoint http://surrealdb:8000 --username root --password root --namespace kaioss --database kaioss /import/seed.surql
volumes:
- ./db:/import:ro
depends_on:
db-schema:
condition: service_completed_successfully
restart: on-failure:5
app:
build:
context: .
dockerfile: Containerfile
ports:
- "5174:5174"
depends_on:
surrealdb:
condition: service_healthy
volumes:
kaioss-data: