-
Notifications
You must be signed in to change notification settings - Fork 404
Expand file tree
/
Copy pathdocker-compose.ee.yaml
More file actions
151 lines (150 loc) 路 4.3 KB
/
Copy pathdocker-compose.ee.yaml
File metadata and controls
151 lines (150 loc) 路 4.3 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
version: "3.9"
x-clickhouse-credentials: &clickhouse-credentials
CLICKHOUSE_USER: dittofeed
CLICKHOUSE_PASSWORD: password
x-backend-app-env: &backend-app-env
<<: *clickhouse-credentials
NODE_ENV: production
DATABASE_HOST: ${DATABASE_HOST:-postgres}
DATABASE_PORT: ${DATABASE_PORT:-5432}
DATABASE_USER: ${DATABASE_USER:-postgres}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-password}
CLICKHOUSE_HOST: ${CLICKHOUSE_HOST:-http://clickhouse-server:8123}
TEMPORAL_ADDRESS: ${TEMPORAL_ADDRESS:-temporal:7233}
WORKSPACE_NAME: ${WORKSPACE_NAME:-Default}
AUTH_MODE: ${AUTH_MODE:-multi-tenant}
SECRET_KEY: ${SECRET_KEY:-GEGL1RHjFVOxIO80Dp8+ODlZPOjm2IDBJB/UunHlf3c=}
DASHBOARD_API_BASE: ${DASHBOARD_API_BASE:-http://localhost:3000}
ONBOARDING_URL: "/dashboard-l/onboarding"
SIGNOUT_URL: "/dashboard/signout"
# ENABLE_BLOB_STORAGE: true
services:
ee:
image: dittofeed/dittofeed-ee:v0.24.0-alpha.15-ee.3
command: node --max-old-space-size=${MEM_LIMIT:-824} ./packages/ee/dist/scripts/startLite.js
deploy:
resources:
limits:
memory: ${CONTAINER_MEM_LIMIT:-1024}m
ports:
- "3000:3000"
logging:
driver: "local"
depends_on:
- postgres
- temporal
- clickhouse-server
# README: To add local env variables uncomment the following line and add a .env file in the root directory
# env_file:
# - .env
environment:
<<: *backend-app-env
DASHBOARD_API_BASE: "http://localhost:3000"
# comment out after initial setup
BOOTSTRAP: "true"
PORT: "3000"
HOST: "0.0.0.0"
networks:
- dittofeed-network-ee
postgres:
image: "postgres:15"
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: dittofeed
POSTGRES_USER: postgres
ports:
- "5432:5432"
logging:
driver: "local"
volumes:
- postgres:/var/lib/postgresql/data
networks:
- dittofeed-network-ee
clickhouse-server:
image: clickhouse/clickhouse-server:24.12.6.70-alpine
ports:
- "8123:8123"
- "9000:9000"
- "9009:9009"
logging:
driver: "local"
deploy:
resources:
limits:
memory: ${CLICKHOUSE_CONTAINER_MEM_LIMIT:-2048}m
environment:
<<: *clickhouse-credentials
volumes:
# uncomment when using blob storage
# - ./packages/backend-lib/clickhouse_config.dev.xml:/etc/clickhouse-server/config.xml
- clickhouse_lib:/var/lib/clickhouse
- clickhouse_log:/var/log/clickhouse-server
networks:
- dittofeed-network-ee
admin-cli:
image: dittofeed/dittofeed-admin-cli-licensed:v0.23.0-ee.1
entrypoint: []
profiles: ["admin-cli"]
command: tail -f /dev/null
tty: true
logging:
driver: "local"
depends_on:
- postgres
- temporal
- clickhouse-server
environment:
<<: *backend-app-env
# README: To add local env variables uncomment the following line and add a .env file in the root directory
env_file:
- .env
networks:
- dittofeed-network-ee
temporal:
depends_on:
- postgres
environment:
- DB=postgresql
- DB_PORT=${DATABASE_PORT:-5432}
- POSTGRES_USER=${DATABASE_USER:-postgres}
- POSTGRES_PWD=${DATABASE_PASSWORD:-password}
- POSTGRES_SEEDS=${DATABASE_HOST:-postgres}
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/prod.yaml
# README: To add local env variables uncomment the following line and add a .env file in the root directory
# env_file:
# - .env
image: temporalio/auto-setup:${TEMPORAL_VERSION:-1.22.4}
labels:
kompose.volume.type: configMap
networks:
- dittofeed-network-ee
ports:
- 7233:7233
logging:
driver: "local"
volumes:
- ./packages/backend-lib/temporal-dynamicconfig:/etc/temporal/config/dynamicconfig
blob-storage:
profiles: ["blob-storage"]
image: minio/minio
ports:
- "9010:9000"
- "9011:9001"
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
volumes:
- blob_storage:/data
command: server --console-address ":9001" /data
networks:
- dittofeed-network-ee
volumes:
postgres:
clickhouse_lib:
clickhouse_log:
blob_storage:
networks:
dittofeed-network-ee:
driver: bridge
name: dittofeed-network-ee