mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
02aa3c6395
- Improve Docker image - smaller - faster to build - deterministict dependencies (see #5958) - Rework process to simplify setting things up - updated documentation - less commands to type - no files to move and modify - optional loading of samples - Still working in standalone mode (without volumes for superset)
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
version: '3'
|
|
services:
|
|
redis:
|
|
image: redis:3.2
|
|
restart: unless-stopped
|
|
ports:
|
|
- 6379:6379
|
|
volumes:
|
|
- redis:/data
|
|
postgres:
|
|
image: postgres:10
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: superset
|
|
POSTGRES_PASSWORD: superset
|
|
POSTGRES_USER: superset
|
|
ports:
|
|
- 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
|
|
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
|