-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-compose.yml
96 lines (96 loc) · 2.28 KB
/
docker-compose.yml
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
version: "3"
services:
# This section is for the Temporal services
postgresql:
container_name: temporal-postgresql
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
image: postgres:${TEMPORAL_POSTGRESQL_VERSION}
ports:
- 5432:5432
volumes:
- /var/lib/postgresql/data
temporal:
container_name: temporal
depends_on:
- postgresql
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgresql
image: temporalio/auto-setup:${TEMPORAL_VERSION}
ports:
- 7233:7233
labels:
kompose.volume.type: configMap
temporal-admin-tools:
container_name: temporal-admin-tools
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CLI_ADDRESS=temporal:7233
image: temporalio/admin-tools:${TEMPORAL_VERSION}
stdin_open: true
tty: true
temporal-ui:
container_name: temporal-ui
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
image: temporalio/ui:${TEMPORAL_UI_VERSION}
ports:
- 8080:8080
# This section is for the Multiwoven services Backend and Frontend
db:
image: postgres:latest
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
volumes:
- mw-pg-data:/var/lib/postgresql/data
redis:
image: redis:latest
volumes:
- mw-redis-data:/data
multiwoven-server:
build:
context: ./server
dockerfile: Dockerfile
args:
TARGETARCH: ${TARGETARCH:-amd64}
ports:
- "3000:3000"
depends_on:
- db
- redis
- temporal
env_file: .env
multiwoven-ui:
build:
context: ./ui
dockerfile: Dockerfile
ports:
- "8000:8000"
depends_on:
- multiwoven-server
# This section is for the Temporal Worker
multiwoven-worker:
build:
context: ./server
dockerfile: Dockerfile
depends_on:
- db
- redis
- temporal
env_file: .env
command: sh -c "./app/temporal/cli/register_namespace && ./app/temporal/cli/worker"
# Volumes for the database and redis
volumes:
mw-pg-data:
mw-redis-data: