-
Notifications
You must be signed in to change notification settings - Fork 67
/
docker-compose.zitadel.yml
201 lines (188 loc) · 6.79 KB
/
docker-compose.zitadel.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
198
199
200
201
services:
pg-compeng:
container_name: datalens-pg-compeng
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: postgres
POSTGRES_USER: postgres
control-api:
container_name: datalens-control-api
image: ghcr.io/datalens-tech/datalens-control-api:0.2188.0
environment:
BI_API_UWSGI_WORKERS_COUNT: 4
CONNECTOR_AVAILABILITY_VISIBLE: "clickhouse,postgres,chyt,ydb,mysql,greenplum,mssql,appmetrica_api,metrika_api"
RQE_FORCE_OFF: 1
DL_CRY_ACTUAL_KEY_ID: key_1
DL_CRY_KEY_VAL_ID_key_1: "h1ZpilcYLYRdWp7Nk8X1M1kBPiUi8rdjz9oBfHyUKIk="
RQE_SECRET_KEY: ""
US_HOST: "http://us:8083"
US_MASTER_TOKEN: "${US_MASTER_TOKEN}"
AUTH_TYPE: "ZITADEL"
AUTH_BASE_URL: "http://zitadel:8080"
AUTH_PROJECT_ID: "${ZITADEL_PROJECT_ID}"
AUTH_CLIENT_ID: "bi"
AUTH_CLIENT_SECRET: "${BI_SERVICE_CLIENT_SECRET}"
AUTH_APP_CLIENT_ID: "${DL_CLIENT_ID}"
AUTH_APP_CLIENT_SECRET: "${DL_CLIENT_SECRET}"
depends_on:
- us
data-api:
container_name: datalens-data-api
image: ghcr.io/datalens-tech/datalens-data-api:0.2188.0
environment:
GUNICORN_WORKERS_COUNT: 5
RQE_FORCE_OFF: 1
CACHES_ON: 0
MUTATIONS_CACHES_ON: 0
RQE_SECRET_KEY: ""
DL_CRY_ACTUAL_KEY_ID: key_1
DL_CRY_KEY_VAL_ID_key_1: "h1ZpilcYLYRdWp7Nk8X1M1kBPiUi8rdjz9oBfHyUKIk="
BI_COMPENG_PG_ON: 1
BI_COMPENG_PG_URL: "postgresql://postgres:postgres@pg-compeng:5432/postgres"
US_HOST: "http://us:8083"
US_MASTER_TOKEN: "${US_MASTER_TOKEN}"
AUTH_TYPE: "ZITADEL"
AUTH_BASE_URL: "http://zitadel:8080"
AUTH_PROJECT_ID: "${ZITADEL_PROJECT_ID}"
AUTH_CLIENT_ID: "bi"
AUTH_CLIENT_SECRET: "${BI_SERVICE_CLIENT_SECRET}"
AUTH_APP_CLIENT_ID: "${DL_CLIENT_ID}"
AUTH_APP_CLIENT_SECRET: "${DL_CLIENT_SECRET}"
depends_on:
- us
- pg-compeng
pg-demo-connection:
container_name: datalens-pg-demo-connection
image: postgres:16-alpine
environment:
POSTGRES_DB: demo
POSTGRES_USER: demo
POSTGRES_PASSWORD: demo
volumes:
- ./pg-demo-connection/init:/docker-entrypoint-initdb.d
- ${VOLUME_DEMO:-./pg-demo-connection/data}:/var/lib/postgresql/data
pg-us:
container_name: datalens-pg-us
image: postgres:16-alpine
environment:
POSTGRES_DB: us-db-ci_purgeable
POSTGRES_USER: us
POSTGRES_PASSWORD: us
volumes:
- ${VOLUME_US:-./metadata}:/var/lib/postgresql/data
us:
container_name: datalens-us
image: ghcr.io/datalens-tech/datalens-us:0.281.0
depends_on:
- pg-us
environment:
APP_INSTALLATION: "opensource"
APP_ENV: "prod"
MASTER_TOKEN: "${US_MASTER_TOKEN}"
POSTGRES_DSN_LIST: ${METADATA_POSTGRES_DSN_LIST:-postgres://us:us@pg-us:5432/us-db-ci_purgeable}
SKIP_INSTALL_DB_EXTENSIONS: ${METADATA_SKIP_INSTALL_DB_EXTENSIONS:-0}
USE_DEMO_DATA: ${USE_DEMO_DATA:-1}
HC: ${HC:-0}
NODE_EXTRA_CA_CERTS: /certs/root.crt
ZITADEL: "true"
ZITADEL_URI: "http://zitadel:8080"
CLIENT_ID: "${DL_CLIENT_ID}"
CLIENT_SECRET: "${DL_CLIENT_SECRET}"
SERVICE_CLIENT_ID: "us"
SERVICE_CLIENT_SECRET: "${US_SERVICE_CLIENT_SECRET}"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./certs:/certs
zitadel-db:
restart: 'always'
image: postgres:16-alpine
environment:
POSTGRES_DB: zitadel
POSTGRES_USER: zit
POSTGRES_PASSWORD: zit
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "zitadel", "-U", "zit"]
interval: '10s'
timeout: '30s'
retries: 5
start_period: '20s'
ports:
- "8087:5432"
volumes:
- ${VOLUME_ZITADEL:-./zitadel-db}:/var/lib/postgresql/data
zitadel:
restart: 'always'
image: 'ghcr.io/zitadel/zitadel:v2.54.8'
command: 'start-from-init --masterkeyFromEnv --tlsMode disabled'
environment:
- 'ZITADEL_MASTERKEY=${ZITADEL_MASTERKEY:?missed ZITADEL_MASTERKEY env}'
- 'ZITADEL_DATABASE_POSTGRES_HOST=zitadel-db'
- 'ZITADEL_DATABASE_POSTGRES_PORT=5432'
- 'ZITADEL_DATABASE_POSTGRES_DATABASE=zitadel'
- 'ZITADEL_DATABASE_POSTGRES_USER_USERNAME=zit'
- 'ZITADEL_DATABASE_POSTGRES_USER_PASSWORD=zit'
- 'ZITADEL_DATABASE_POSTGRES_USER_SSL_MODE=disable'
- 'ZITADEL_DATABASE_POSTGRES_ADMIN_USERNAME=zit'
- 'ZITADEL_DATABASE_POSTGRES_ADMIN_PASSWORD=zit'
- 'ZITADEL_DATABASE_POSTGRES_ADMIN_SSL_MODE=disable'
- 'ZITADEL_DATABASE_POSTGRES_MAXOPENCONNS=20'
- 'ZITADEL_DATABASE_POSTGRES_MAXIDLECONNS=10'
- 'ZITADEL_DATABASE_POSTGRES_MAXCONNLIFETIME=30m'
- 'ZITADEL_DATABASE_POSTGRES_MAXCONNIDLETIME=10m'
- 'ZITADEL_SYSTEMDEFAULTS_SECRETGENERATORS_PASSWORDSALTCOST=1'
- 'ZITADEL_EXTERNALSECURE=false'
- 'ZITADEL_EXTERNALPORT=${ZITADEL_EXTERNALPORT:-8080}'
- 'ZITADEL_EXTERNALDOMAIN=${ZITADEL_EXTERNALDOMAIN:-zitadel}'
- 'ZITADEL_FIRSTINSTANCE_PATPATH=/machinekey/zitadel-admin-sa.token'
- 'ZITADEL_FIRSTINSTANCE_ORG_MACHINE_MACHINE_USERNAME=zitadel-admin-sa'
- 'ZITADEL_FIRSTINSTANCE_ORG_MACHINE_MACHINE_NAME=Admin'
- 'ZITADEL_FIRSTINSTANCE_ORG_MACHINE_MACHINEKEY_TYPE=1'
- 'ZITADEL_FIRSTINSTANCE_ORG_MACHINE_PAT_EXPIRATIONDATE=9999-01-01T00:00:00Z'
- 'ZITADEL_DEFAULTINSTANCE_OIDCSETTINGS_ACCESSTOKENLIFETIME=0.25h'
- 'ZITADEL_DEFAULTINSTANCE_OIDCSETTINGS_REFRESHTOKENEXPIRATION=336h'
depends_on:
zitadel-db:
condition: 'service_healthy'
ports:
- '8085:8080'
volumes:
- ./zitadel/machinekey:/machinekey:rw
datalens:
container_name: datalens-ui
image: ghcr.io/datalens-tech/datalens-ui:0.2412.0
ports:
- ${UI_PORT:-8080}:8080
depends_on:
- us
- control-api
- data-api
- pg-demo-connection
environment:
APP_MODE: "full"
APP_ENV: "production"
APP_INSTALLATION: "opensource"
AUTH_POLICY: "disabled"
US_ENDPOINT: "http://us:8083"
BI_API_ENDPOINT: "http://control-api:8080"
BI_DATA_ENDPOINT: "http://data-api:8080"
US_MASTER_TOKEN: "${US_MASTER_TOKEN}"
NODE_EXTRA_CA_CERTS: "/usr/local/share/ca-certificates/cert.pem"
HC: ${HC:-0}
YANDEX_MAP_ENABLED: ${YANDEX_MAP_ENABLED:-0}
YANDEX_MAP_TOKEN: ${YANDEX_MAP_TOKEN}
ZITADEL: "true"
CLIENT_ID: "${DL_CLIENT_ID}"
CLIENT_SECRET: "${DL_CLIENT_SECRET}"
ZITADEL_PROJECT_ID: "${ZITADEL_PROJECT_ID}"
ZITADEL_URI: "http://localhost:8085"
ZITADEL_INTERNAL_URI: "http://zitadel:8080"
APP_HOST_URI: "http://localhost:8080"
ZITADEL_COOKIE_SECRET: ${ZITADEL_COOKIE_SECRET:?missed ZITADEL_COOKIE_SECRET env}"
SERVICE_CLIENT_ID: "charts"
SERVICE_CLIENT_SECRET: "${CHARTS_SERVICE_CLIENT_SECRET}"
volumes:
db-us:
db-zitadel:
db-demo: