Repository navigation
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
71 lines (68 loc) · 1.84 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
71 lines (68 loc) · 1.84 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
# Local dev stack with throwaway credentials and no gateway; for production use examples/compose/ or deploy/install.sh.
services:
postgres:
image: postgres:17-alpine
# Same platform identity as production, so dev exercises the same import/protection paths.
labels:
io.miabi.part-of: miabi
io.miabi.role: platform-db
io.miabi.managed-by: compose
io.miabi.protected: "true"
environment:
POSTGRES_USER: miabi
POSTGRES_PASSWORD: miabi
POSTGRES_DB: miabi
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U miabi"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
labels:
io.miabi.part-of: miabi
io.miabi.role: platform-cache
io.miabi.managed-by: compose
io.miabi.protected: "true"
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
miabi:
labels:
io.miabi.part-of: miabi
io.miabi.role: control-plane
io.miabi.managed-by: compose
io.miabi.protected: "true"
build:
context: .
dockerfile: docker/Dockerfile
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
MIABI_DB_HOST: postgres
MIABI_DB_USER: miabi
MIABI_DB_PASSWORD: miabi
MIABI_DB_NAME: miabi
MIABI_REDIS_ADDR: redis:6379
MIABI_ENV: dev
ports:
- "9000:9000"
volumes:
# Execution logs are externalized here (MIABI_LOG_DIR).
- miabi-logs:/var/lib/miabi/logs
# Optional: real host CPU/memory on the admin Node page (MIABI_HOST_PROC); without it Miabi falls back to /proc.
- /proc:/host/proc:ro
volumes:
pgdata:
miabi-logs: