-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (104 loc) · 2.76 KB
/
docker-compose.yml
File metadata and controls
110 lines (104 loc) · 2.76 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
services:
mysql:
image: "mysql:8.4.8-oraclelinux9"
environment:
MYSQL_ROOT_PASSWORD: "root123"
MYSQL_USER: "enduro"
MYSQL_PASSWORD: "enduro123"
volumes:
- "./hack/docker-init-mysql.sql:/docker-entrypoint-initdb.d/docker-init.sql"
ports:
- "127.0.0.1:7450:3306"
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u",
"root",
"-proot123",
]
interval: 5s
timeout: 5s
retries: 60
start_period: 30s
temporal-admin-tools:
image: "temporalio/admin-tools:1.30.3"
restart: "on-failure:6"
depends_on:
mysql:
condition: service_healthy
environment:
- "DB=mysql8"
- "DB_PORT=3306"
- "MYSQL_USER=enduro"
- "MYSQL_PWD=enduro123"
- "MYSQL_SEEDS=mysql"
- "SQL_PASSWORD=enduro123"
volumes:
- "./hack/compose:/compose"
entrypoint: ["/bin/sh"]
command: "/compose/setup-mysql.sh"
temporal:
image: "temporalio/server:1.30.3"
depends_on:
temporal-admin-tools:
condition: service_completed_successfully
environment:
- "DB=mysql8"
- "DB_PORT=3306"
- "MYSQL_USER=enduro"
- "MYSQL_PWD=enduro123"
- "MYSQL_SEEDS=mysql"
- "BIND_ON_IP=0.0.0.0"
- "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml"
volumes:
- ./hack/etc/temporal/dynamicconfig:/etc/temporal/config/dynamicconfig
ports:
- "127.0.0.1:7233:7233"
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "7233"]
interval: 5s
timeout: 3s
start_period: 30s
retries: 60
temporal-create-namespace:
image: "temporalio/admin-tools:1.30.3"
restart: "on-failure:5"
depends_on:
temporal:
condition: service_healthy
environment:
- "TEMPORAL_ADDRESS=temporal:7233"
- "DEFAULT_NAMESPACE=default"
volumes:
- "./hack/compose:/compose"
entrypoint: ["/bin/sh"]
command: "/compose/create-namespace.sh"
temporal-ui:
image: "temporalio/ui:2.48.1"
depends_on:
temporal:
condition: service_healthy
environment:
- "TEMPORAL_ADDRESS=temporal:7233"
- "TEMPORAL_CORS_ORIGINS=http://localhost:7440"
ports:
- "127.0.0.1:7440:8080"
minio:
image: "minio/minio:RELEASE.2020-04-28T23-56-56Z"
command: "server /data"
volumes:
- "./hack/minio-data:/data"
ports:
- "127.0.0.1:7460:9000"
redis:
# Redis 8.2 is the current Redis 8 LTS line. Redis policy marks the
# second and last minor releases in a major version as LTS; newer interim
# minors, such as 8.4, are STS.
image: "redis:8.2.5-alpine3.22"
ports:
- "127.0.0.1:7470:6379"