@@ -129,7 +129,51 @@ services:
129129 condition : service_completed_successfully
130130 rabbitmq :
131131 condition : service_healthy
132- profiles : [worker, scheduler, s3, oracle, hdfs, hive, clickhouse, mysql, mssql, sftp, ftp, ftps, samba, webdav, all]
132+ profiles : [worker, scheduler, s3, hdfs, hive, oracle, clickhouse, mysql, mssql, sftp, ftp, ftps, samba, webdav, all]
133+
134+ horizon :
135+ image : mtsrus/horizon-backend:develop
136+ restart : unless-stopped
137+ env_file : .env.docker
138+ environment :
139+ # list here usernames which should be assigned SUPERADMIN role on application start
140+ HORIZON__ENTRYPOINT__ADMIN_USERS : admin
141+ HORIZON__DATABASE__URL : postgresql+asyncpg://horizon:changeme@horizon-db:5432/horizon
142+ HORIZON__AUTH__ACCESS_TOKEN__SECRET_KEY : generate_another_random_string
143+ HORIZON__AUTH__PROVIDER : horizon.backend.providers.auth.dummy.DummyAuthProvider
144+ HORIZON__SERVER__LOGGING__PRESET : colored
145+ # PROMETHEUS_MULTIPROC_DIR is required for multiple workers, see:
146+ # https://prometheus.github.io/client_python/multiprocess/
147+ PROMETHEUS_MULTIPROC_DIR : /tmp/prometheus-metrics
148+ # tmpfs dir is cleaned up each container restart
149+ tmpfs :
150+ - /tmp/prometheus-metrics
151+ ports :
152+ - 8020:8000
153+ depends_on :
154+ horizon-db :
155+ condition : service_healthy
156+ profiles : [horizon, s3, hdfs, hive, oracle, clickhouse, mysql, mssql, sftp, ftp, ftps, samba, webdav, all]
157+
158+ horizon-db :
159+ image : postgres
160+ restart : unless-stopped
161+ environment :
162+ TZ : UTC
163+ POSTGRES_DB : horizon
164+ POSTGRES_USER : horizon
165+ POSTGRES_PASSWORD : changeme
166+ ports :
167+ - 5434:5432
168+ volumes :
169+ - horizon_test_data:/var/lib/postgresql/data
170+ healthcheck :
171+ test : pg_isready
172+ start_period : 5s
173+ interval : 30s
174+ timeout : 5s
175+ retries : 3
176+ profiles : [horizon, s3, hdfs, hive, oracle, clickhouse, mysql, mssql, sftp, ftp, ftps, samba, webdav, all]
133177
134178 test-postgres :
135179 image : postgres
@@ -147,7 +191,7 @@ services:
147191 interval : 30s
148192 timeout : 5s
149193 retries : 3
150- profiles : [s3, oracle, clickhouse, mysql, mssql, hdfs, hive , sftp, ftp, ftps, samba, webdav, all]
194+ profiles : [s3, hdfs, hive, oracle, clickhouse, mysql, mssql , sftp, ftp, ftps, samba, webdav, all]
151195
152196 test-s3 :
153197 image : bitnami/minio:latest
@@ -366,4 +410,5 @@ services:
366410volumes :
367411 postgres_test_data :
368412 rabbitmq_test_data :
413+ horizon_test_data :
369414 keycloak_data :
0 commit comments