Skip to content

Commit 0b5dc82

Browse files
authored
Add advanced visibility with SQL DB configs (#165)
1 parent 047f32b commit 0b5dc82

File tree

2 files changed

+121
-0
lines changed

2 files changed

+121
-0
lines changed

docker-compose-mysql8.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
version: "3.5"
2+
services:
3+
mysql:
4+
container_name: temporal-mysql
5+
environment:
6+
- MYSQL_ROOT_PASSWORD=root
7+
image: mysql:${MYSQL_VERSION}
8+
networks:
9+
- temporal-network
10+
ports:
11+
- 3306:3306
12+
volumes:
13+
- /var/lib/mysql
14+
temporal:
15+
container_name: temporal
16+
depends_on:
17+
- mysql
18+
environment:
19+
- DB=mysql8
20+
- DB_PORT=3306
21+
- MYSQL_USER=root
22+
- MYSQL_PWD=root
23+
- MYSQL_SEEDS=mysql
24+
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
25+
image: temporalio/auto-setup:${TEMPORAL_VERSION}
26+
networks:
27+
- temporal-network
28+
ports:
29+
- 7233:7233
30+
volumes:
31+
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
32+
labels:
33+
kompose.volume.type: configMap
34+
temporal-admin-tools:
35+
container_name: temporal-admin-tools
36+
depends_on:
37+
- temporal
38+
environment:
39+
- TEMPORAL_CLI_ADDRESS=temporal:7233
40+
image: temporalio/admin-tools:${TEMPORAL_VERSION}
41+
networks:
42+
- temporal-network
43+
stdin_open: true
44+
tty: true
45+
temporal-ui:
46+
container_name: temporal-ui
47+
depends_on:
48+
- temporal
49+
environment:
50+
- TEMPORAL_ADDRESS=temporal:7233
51+
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
52+
image: temporalio/ui:${TEMPORAL_UI_VERSION}
53+
networks:
54+
- temporal-network
55+
ports:
56+
- 8080:8080
57+
networks:
58+
temporal-network:
59+
driver: bridge
60+
name: temporal-network

docker-compose-postgres12.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: "3.5"
2+
services:
3+
postgresql:
4+
container_name: temporal-postgresql
5+
environment:
6+
POSTGRES_PASSWORD: temporal
7+
POSTGRES_USER: temporal
8+
image: postgres:${POSTGRESQL_VERSION}
9+
networks:
10+
- temporal-network
11+
ports:
12+
- 5432:5432
13+
volumes:
14+
- /var/lib/postgresql/data
15+
temporal:
16+
container_name: temporal
17+
depends_on:
18+
- postgresql
19+
environment:
20+
- DB=postgres12
21+
- DB_PORT=5432
22+
- POSTGRES_USER=temporal
23+
- POSTGRES_PWD=temporal
24+
- POSTGRES_SEEDS=postgresql
25+
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
26+
image: temporalio/auto-setup:${TEMPORAL_VERSION}
27+
networks:
28+
- temporal-network
29+
ports:
30+
- 7233:7233
31+
volumes:
32+
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
33+
labels:
34+
kompose.volume.type: configMap
35+
temporal-admin-tools:
36+
container_name: temporal-admin-tools
37+
depends_on:
38+
- temporal
39+
environment:
40+
- TEMPORAL_CLI_ADDRESS=temporal:7233
41+
image: temporalio/admin-tools:${TEMPORAL_VERSION}
42+
networks:
43+
- temporal-network
44+
stdin_open: true
45+
tty: true
46+
temporal-ui:
47+
container_name: temporal-ui
48+
depends_on:
49+
- temporal
50+
environment:
51+
- TEMPORAL_ADDRESS=temporal:7233
52+
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
53+
image: temporalio/ui:${TEMPORAL_UI_VERSION}
54+
networks:
55+
- temporal-network
56+
ports:
57+
- 8080:8080
58+
networks:
59+
temporal-network:
60+
driver: bridge
61+
name: temporal-network

0 commit comments

Comments
 (0)