mirror of
https://github.com/apache/superset.git
synced 2026-07-25 08:02:28 +00:00
60 lines
1.9 KiB
YAML
60 lines
1.9 KiB
YAML
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
superset-query-sidecar:
|
|
build:
|
|
context: ./sidecar-node
|
|
dockerfile: Dockerfile
|
|
container_name: superset-query-sidecar
|
|
ports:
|
|
- "3001:3001"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- HOST=0.0.0.0
|
|
- PORT=3001
|
|
- SUPERSET_ORIGINS=http://localhost:8088,http://superset:8088
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3001/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
restart: unless-stopped
|
|
networks:
|
|
- superset
|
|
|
|
# Example integration with existing Superset service
|
|
# Uncomment and modify according to your setup
|
|
#
|
|
# superset:
|
|
# # ... your existing superset configuration
|
|
# environment:
|
|
# - QUERY_SIDECAR_ENABLED=true
|
|
# - QUERY_SIDECAR_BASE_URL=http://superset-query-sidecar:3001
|
|
# - QUERY_SIDECAR_TIMEOUT=30
|
|
# depends_on:
|
|
# superset-query-sidecar:
|
|
# condition: service_healthy
|
|
# networks:
|
|
# - superset
|
|
|
|
networks:
|
|
superset:
|
|
external: true |