Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ version: "3.7"
services:
redis:
image: redis:3.2
container_name: superset_cache
restart: unless-stopped
ports:
- "127.0.0.1:6379:6379"
Expand All @@ -45,16 +46,18 @@ services:
db:
env_file: docker/.env
image: postgres:10
container_name: superset_db
restart: unless-stopped
ports:
- "127.0.0.1:5432:5432"
volumes:
- db_home:/var/lib/postgresql/data

superset:
env_file: docker/.env
build: *superset-build
container_name: superset_app
command: ["flask", "run", "-p", "8088", "--with-threads", "--reload", "--debugger", "--host=0.0.0.0"]
env_file: docker/.env
restart: unless-stopped
ports:
- 8088:8088
Expand All @@ -63,20 +66,23 @@ services:

superset-init:
build: *superset-build
container_name: superset_init
command: ["/app/docker-init.sh"]
env_file: docker/.env
depends_on: *superset-depends-on
volumes: *superset-volumes

superset-node:
image: node:10-jessie
container_name: superset_node
command: ["bash", "-c", "cd /app/superset-frontend && npm install --global webpack webpack-cli && npm install && npm run dev"]
env_file: docker/.env
depends_on: *superset-depends-on
volumes: *superset-volumes

superset-worker:
build: *superset-build
container_name: superset_worker
command: ["celery", "worker", "--app=superset.tasks.celery_app:app", "-Ofair"]
env_file: docker/.env
restart: unless-stopped
Expand All @@ -91,4 +97,4 @@ volumes:
db_home:
external: false
redis:
external: false
external: false
12 changes: 8 additions & 4 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ Docker is an easy way to get started with Superset.

## Configuration

The `/app/pythonpath` folder is mounted from [./docker/pythonpath_dev](./docker/pythonpath_dev)
which contains a base configuration [./docker/pythonpath/superset_config.py](./docker/pythonpath/superset_config.py)
The `/app/pythonpath` folder is mounted from [./pythonpath_dev](./pythonpath_dev)
which contains a base configuration [./pythonpath_dev/superset_config.py](./pythonpath_dev/superset_config.py)
intended for use with local development.

### Local overrides

In order to override configuration settings locally, simply make a copy of [./docker/pythonpath/superset_config_local.example](./docker/pythonpath/superset_config_local.example)
into [./docker/pythonpath/superset_config_docker.py](./docker/pythonpath/superset_config_docker.py) (git ignored) and fill in your overrides.
In order to override configuration settings locally, simply make a copy of [./pythonpath_dev/superset_config_local.example](./pythonpath_dev/superset_config_local.example)
into [./pythonpath_dev/superset_config_docker.py](./pythonpath/superset_config_docker.py) (git ignored) and fill in your overrides.

### Local packages

Expand Down Expand Up @@ -65,6 +65,10 @@ docker-compose up
After several minutes for superset initialization to finish, you can open a browser and view [`http://localhost:8088`](http://localhost:8088)
to start your journey.

To check the progression of the init procedures run:

`docker logs superset_init -f`

## Developing

While running, the container server will reload on modification of the superset python and javascript source code.
Expand Down