Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
179 lines (171 loc) · 4.7 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
179 lines (171 loc) · 4.7 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# Do **not** use this yml for production. It is not up-to-date.
# Use https://docs.postiz.com/installation/docker-compose
# This is only for the dev enviroment
services:
postiz-postgres:
# ref: https://hub.docker.com/_/postgres
image: postgres:17-alpine # 17.0
container_name: postiz-postgres
restart: always
environment:
POSTGRES_PASSWORD: postiz-local-pwd
POSTGRES_USER: postiz-local
POSTGRES_DB: postiz-db-local
TEMPORAL_ADDRESS: "temporal:7233"
volumes:
- postgres-volume:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- postiz-network
postiz-redis:
# ref: https://hub.docker.com/_/redis
image: redis:7-alpine # 7.4.0
container_name: postiz-redis
restart: always
ports:
- 6379:6379
networks:
- postiz-network
postiz-pg-admin:
# ref: https://hub.docker.com/r/dpage/pgadmin4/tags
image: dpage/pgadmin4:latest
container_name: postiz-pg-admin
restart: always
ports:
- 8081:80
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
networks:
- postiz-network
postiz-redisinsight:
# ref: https://hub.docker.com/r/redis/redisinsight
image: redis/redisinsight:latest
container_name: postiz-redisinsight
links:
- postiz-redis
ports:
- '5540:5540'
volumes:
- redisinsight:/data
networks:
- postiz-network
restart: always
temporal-elasticsearch:
container_name: temporal-elasticsearch
image: elasticsearch:7.17.27
restart: always
environment:
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb
- cluster.routing.allocation.disk.watermark.high=256mb
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms256m -Xmx256m
- xpack.security.enabled=false
networks:
- temporal-network
expose:
- 9200
healthcheck:
test: ["CMD-SHELL", "curl -fsS \"http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=5s\" || exit 1"]
interval: 10s
timeout: 10s
retries: 10
start_period: 60s
volumes:
- /var/lib/elasticsearch/data
temporal-postgresql:
container_name: temporal-postgresql
image: postgres:16
restart: always
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
networks:
- temporal-network
expose:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U temporal"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
- /var/lib/postgresql/data
temporal:
container_name: temporal
restart: always
ports:
- "7233:7233"
image: temporalio/auto-setup:1.28.1
depends_on:
temporal-postgresql:
condition: service_healthy
temporal-elasticsearch:
condition: service_healthy
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=temporal-postgresql
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
- ENABLE_ES=true
- ES_SEEDS=temporal-elasticsearch
- ES_VERSION=v7
- TEMPORAL_NAMESPACE=default
networks:
- temporal-network
# The gRPC frontend binds to the container IP, not loopback, so the
# healthcheck has to dial the service name instead of localhost.
healthcheck:
test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "temporal:7233"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
labels:
kompose.volume.type: configMap
temporal-admin-tools:
container_name: temporal-admin-tools
image: temporalio/admin-tools:1.28.1-tctl-1.18.4-cli-1.4.1
restart: on-failure
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CLI_ADDRESS=temporal:7233
networks:
- temporal-network
stdin_open: true
depends_on:
temporal:
condition: service_healthy
tty: true
temporal-ui:
container_name: temporal-ui
image: temporalio/ui:2.34.0
restart: always
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://127.0.0.1:3000
networks:
- temporal-network
ports:
- "8080:8080"
depends_on:
temporal:
condition: service_healthy
volumes:
redisinsight:
postgres-volume:
external: false
networks:
postiz-network:
external: false
temporal-network:
driver: bridge
name: temporal-network