mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
* Add Auto option to point radius to make it work as expected since the example using this didn't work because of this (and also as the tooltip says the auto option should be available) * Remove trailing space * Fix docker configurations and docker installation guide. - Fix installation guide regarding passing enviromental variable to docker-compose. - Add gevent installation command in Dockerfile. (Didn't add it in requirements because it's not really a requirement for the whole project) - Add user: root:root to allow superset service to work in development mode. Since access to binded superset directory to local requires root user. - Also add localhost to postgres and redis services to reduce unintended security risk. * Fix docker configurations and docker installation guide. - Fix installation guide regarding passing enviromental variable to docker-compose. - Add gevent installation command in Dockerfile. (Didn't add it in requirements because it's not really a requirement for the whole project) - Add user: root:root to allow superset service to work in development mode. Since access to binded superset directory to local requires root user. - Also add localhost to postgres and redis services to reduce unintended security risk.
72 lines
2.1 KiB
YAML
72 lines
2.1 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: '2'
|
|
services:
|
|
redis:
|
|
image: redis:3.2
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:6379:6379"
|
|
volumes:
|
|
- redis:/data
|
|
|
|
postgres:
|
|
image: postgres:10
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: superset
|
|
POSTGRES_PASSWORD: superset
|
|
POSTGRES_USER: superset
|
|
ports:
|
|
- "127.0.0.1:5432:5432"
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
superset:
|
|
build:
|
|
context: ../../
|
|
dockerfile: contrib/docker/Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: superset
|
|
POSTGRES_USER: superset
|
|
POSTGRES_PASSWORD: superset
|
|
POSTGRES_HOST: postgres
|
|
POSTGRES_PORT: 5432
|
|
REDIS_HOST: redis
|
|
REDIS_PORT: 6379
|
|
# If using production, comment development volume below
|
|
#SUPERSET_ENV: production
|
|
SUPERSET_ENV: development
|
|
user: root:root
|
|
ports:
|
|
- 8088:8088
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
volumes:
|
|
# this is needed to communicate with the postgres and redis services
|
|
- ./superset_config.py:/home/superset/superset/superset_config.py
|
|
# this is needed for development, remove with SUPERSET_ENV=production
|
|
- ../../superset:/home/superset/superset
|
|
|
|
volumes:
|
|
postgres:
|
|
external: false
|
|
redis:
|
|
external: false
|