-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.85 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
services:
# PostgreSQL with pgvector extension
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-memu}
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- memu-network
# Temporal server
# Note: Temporal shares the same PostgreSQL instance as the main app but uses
# a separate database (`TEMPORAL_DB`, default: `temporal`) from the app's
# database (`POSTGRES_DB`, default: `memu`).
# TODO: For production, consider using a separate PostgreSQL instance for Temporal
# or at minimum keep Temporal and the app in separate databases as configured here.
# Pointing both services at the same database can cause schema conflicts and is
# not recommended.
temporal:
image: temporalio/auto-setup:1.25.1
depends_on:
postgres:
condition: service_healthy
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PWD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_SEEDS=postgres
- POSTGRES_DB=${TEMPORAL_DB:-temporal}
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
ports:
- "7233:7233" # Temporal gRPC
networks:
- memu-network
# Temporal Web UI
temporal-ui:
image: temporalio/ui:2.31.2
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
ports:
- "8088:8080" # Temporal Web UI
networks:
- memu-network
volumes:
postgres-data:
driver: local
networks:
memu-network:
name: memu-network
driver: bridge