forked from PostHog/posthog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev-full.yml
197 lines (183 loc) · 4.74 KB
/
docker-compose.dev-full.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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#
# docker-compose file used ONLY for local development.
# This file is the same as `docker-compose.dev.yml` except it boots the services in containers instead of you running them locally
# For more info, see:
# https://posthog.com/handbook/engineering/developing-locally
#
# PostHog has sunset support for self-hosted K8s deployments.
# See: https://posthog.com/blog/sunsetting-helm-support-posthog
#
services:
db:
extends:
file: docker-compose.base.yml
service: db
ports:
- '5432:5432'
redis:
extends:
file: docker-compose.base.yml
service: redis
ports:
- '6379:6379'
clickhouse:
extends:
file: docker-compose.base.yml
service: clickhouse
ports:
- '8123:8123'
- '9000:9000'
- '9440:9440'
- '9009:9009'
volumes:
- ./posthog/idl:/idl
- ./docker/clickhouse/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./docker/clickhouse/config.xml:/etc/clickhouse-server/config.xml
- ./docker/clickhouse/users-dev.xml:/etc/clickhouse-server/users.xml
depends_on:
- kafka
- zookeeper
zookeeper:
extends:
file: docker-compose.base.yml
service: zookeeper
kafka:
extends:
file: docker-compose.base.yml
service: kafka
ports:
- '9092:9092'
depends_on:
- zookeeper
objectstorage:
extends:
file: docker-compose.base.yml
service: objectstorage
ports:
- '19000:19000'
- '19001:19001'
maildev:
extends:
file: docker-compose.base.yml
service: maildev
ports:
- '1080:1080'
- '1025:1025'
webhook-tester:
image: tarampampam/webhook-tester:1.1.0
restart: on-failure
ports:
- '2080:2080'
environment:
- PORT=2080
worker:
extends:
file: docker-compose.base.yml
service: worker
build: .
volumes:
- .:/app/posthog
environment:
- DEBUG=1
- PLUGIN_SERVER_IDLE=1
web:
extends:
file: docker-compose.base.yml
service: web
ports:
- 8000:8000
build: .
command: ./bin/docker-server-unit
volumes:
- .:/app/posthog
environment:
- DEBUG=1
- OBJECT_STORAGE_ENDPOINT=http://objectstorage:19000
- POSTHOG_SKIP_MIGRATION_CHECKS=true
- JS_URL=http://localhost:8000
depends_on:
- db
- redis
- clickhouse
- kafka
links:
- objectstorage:objectstorage
capture:
extends:
file: docker-compose.base.yml
service: capture
ports:
- 3000:3000
environment:
- DEBUG=1
depends_on:
- redis
- kafka
plugins:
extends:
file: docker-compose.base.yml
service: plugins
build: .
volumes:
- .:/app/posthog
environment:
- DOCKER=1
depends_on:
- db
- redis
- clickhouse
- kafka
- objectstorage
migrate:
extends:
file: docker-compose.base.yml
service: migrate
build: .
volumes:
- .:/app/posthog
environment:
- DEBUG=1
# Temporal containers
elasticsearch:
extends:
file: docker-compose.base.yml
service: elasticsearch
expose:
- 9200
temporal:
extends:
file: docker-compose.base.yml
service: temporal
ports:
- 7233:7233
temporal-admin-tools:
extends:
file: docker-compose.base.yml
service: temporal-admin-tools
depends_on:
- temporal
temporal-ui:
extends:
file: docker-compose.base.yml
service: temporal-ui
ports:
- 8081:8080
depends_on:
temporal:
condition: service_started
db:
condition: service_healthy
temporal-django-worker:
extends:
file: docker-compose.base.yml
service: temporal-django-worker
build: .
volumes:
- .:/app/posthog
depends_on:
- db
- redis
- clickhouse
- kafka
- objectstorage
- temporal