forked from dittofeed/dittofeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.lite.yaml
164 lines (163 loc) · 4.71 KB
/
docker-compose.lite.yaml
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
version: "3.9"
x-database-credentials: &database-credentials
DATABASE_USER: ${DATABASE_USER:-postgres}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-password}
x-clickhouse-credentials: &clickhouse-credentials
CLICKHOUSE_USER: ${CLICKHOUSE_USER:-dittofeed}
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD:-password}
x-backend-app-env: &backend-app-env
<<: [*clickhouse-credentials, *database-credentials]
NODE_ENV: production
DATABASE_HOST: ${DATABASE_HOST:-postgres}
DATABASE_PORT: ${DATABASE_PORT:-5432}
CLICKHOUSE_HOST: ${CLICKHOUSE_HOST:-http://clickhouse-server:8123}
TEMPORAL_ADDRESS: ${TEMPORAL_ADDRESS:-temporal:7233}
WORKSPACE_NAME: ${WORKSPACE_NAME:-Default}
AUTH_MODE: ${AUTH_MODE:-single-tenant}
SECRET_KEY: ${SECRET_KEY:-GEGL1RHjFVOxIO80Dp8+ODlZPOjm2IDBJB/UunHlf3c=}
PASSWORD: ${PASSWORD:-password}
DASHBOARD_API_BASE: ${DASHBOARD_API_BASE:-http://localhost:3000}
services:
lite:
image: dittofeed/dittofeed-lite:${IMAGE_TAG:-v0.19.0}
restart: always
command: node --max-old-space-size=${LITE_MEM_LIMIT:-412} ./packages/lite/dist/scripts/startLite.js --workspace-name=${WORKSPACE_NAME:-Default}
logging:
driver: "local"
deploy:
resources:
limits:
memory: ${LITE_CONTAINER_MEM_LIMIT:-512}m
ports:
- "3000:3000"
depends_on:
- postgres
- temporal
- clickhouse-server
environment:
<<: *backend-app-env
# uncomment after initial setup
# BOOTSTRAP: "false"
# 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-lite
# useful for upgrading dittofeed
admin-cli:
image: dittofeed/dittofeed-lite:${IMAGE_TAG:-v0.19.0}
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-lite
temporal:
container_name: temporal
restart: always
logging:
driver: "local"
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
image: temporalio/auto-setup:${TEMPORAL_VERSION:-1.22.4}
labels:
kompose.volume.type: configMap
networks:
- dittofeed-network-lite
ports:
- 7233:7233
volumes:
- ./packages/backend-lib/temporal-dynamicconfig:/etc/temporal/config/dynamicconfig
temporal-ui:
profiles: ["temporal-ui"]
container_name: temporal-ui
restart: always
logging:
driver: "local"
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
image: temporalio/ui:${TEMPORAL_UI_VERSION:-2.22.1}
networks:
- dittofeed-network-lite
ports:
- 8080:8080
postgres:
image: postgres:${POSTGRES_VERSION:-15}
restart: always
logging:
driver: "local"
environment:
- POSTGRES_PASSWORD=${DATABASE_PASSWORD:-password}
- POSTGRES_USER=${DATABASE_USER:-postgres}
- POSTGRES_DB=dittofeed
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
networks:
- dittofeed-network-lite
clickhouse-server:
image: clickhouse/clickhouse-server:23.8.8.20-alpine
restart: always
logging:
driver: "local"
deploy:
resources:
limits:
memory: ${CLICKHOUSE_CONTAINER_MEM_LIMIT:-1024}m
environment:
<<: *clickhouse-credentials
ports:
- "8123:8123"
- "9000:9000"
- "9009:9009"
volumes:
- clickhouse_lib:/var/lib/clickhouse
- clickhouse_log:/var/log/clickhouse-server
networks:
- dittofeed-network-lite
# Note that minio is only used for local development. In production, use any S3-compatible storage.
blob-storage:
image: minio/minio
profiles: ["blob-storage"]
logging:
driver: "local"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
volumes:
- blob-storage:/data
command: server --console-address ":9001" /data
volumes:
postgres:
clickhouse_lib:
clickhouse_log:
blob-storage:
networks:
dittofeed-network-lite:
driver: bridge
name: dittofeed-network-lite