-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (86 loc) · 2.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (86 loc) · 2.48 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
# Local dev stack for the cowork integration platform.
# Brings up Temporal (workflow engine), Postgres (audit store),
# MinIO (S3-compatible blob store). Everything bound to localhost only.
services:
postgres:
image: postgres:16-alpine
container_name: cowork-postgres
restart: unless-stopped
environment:
POSTGRES_USER: cowork
POSTGRES_PASSWORD: cowork
POSTGRES_DB: audit
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cowork -d audit"]
interval: 5s
timeout: 3s
retries: 10
temporal:
image: temporalio/auto-setup:1.24.2
container_name: cowork-temporal
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DB: postgres12
DB_PORT: 5432
POSTGRES_USER: cowork
POSTGRES_PWD: cowork
POSTGRES_SEEDS: postgres
DYNAMIC_CONFIG_FILE_PATH: config/dynamicconfig/development-sql.yaml
ports:
- "127.0.0.1:7233:7233"
temporal-ui:
image: temporalio/ui:2.27.3
container_name: cowork-temporal-ui
restart: unless-stopped
depends_on:
- temporal
environment:
TEMPORAL_ADDRESS: temporal:7233
TEMPORAL_CORS_ORIGINS: http://localhost:3000
ports:
- "127.0.0.1:8233:8080"
minio:
image: minio/minio:RELEASE.2024-06-13T22-53-53Z
container_name: cowork-minio
restart: unless-stopped
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: admin123
ports:
- "127.0.0.1:9000:9000"
- "127.0.0.1:9001:9001"
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 3s
retries: 10
# Creates the `cowork-audit` bucket on first run.
minio-init:
image: minio/mc:RELEASE.2024-06-13T05-26-02Z
container_name: cowork-minio-init
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 admin admin123;
mc mb --ignore-existing local/cowork-audit;
mc mb --ignore-existing local/cowork-snapshots;
mc version enable local/cowork-audit;
mc retention set --default COMPLIANCE 30d local/cowork-audit || true;
echo 'MinIO buckets ready';
"
restart: "no"
volumes:
postgres-data:
minio-data: