superset/docker
Maxime Beauchemin dfb9af36df
chore: cypress set up tweaks (#31926)
2025-01-21 12:06:19 -08:00
..
docker-entrypoint-initdb.d feat: get docker-compose to work as the backend for Cypress tests (#31796) 2025-01-17 16:19:39 -08:00
entrypoints fix: docker refactor (#31385) 2024-12-13 16:17:44 -08:00
nginx chore(async): Making create app configurable (#25346) 2023-09-20 10:04:58 -07:00
pythonpath_dev feat: get docker-compose to work as the backend for Cypress tests (#31796) 2025-01-17 16:19:39 -08:00
superset-websocket chore: get websocket service to start in docker-compose (#28135) 2024-04-23 11:06:41 -07:00
.env feat: improve docker-compose services boot sequence (#31747) 2025-01-09 16:24:53 -08:00
README.md docs: Removed mentioning of .env-non-dev in docker/README.md (#31460) 2025-01-21 12:24:01 -07:00
apt-install.sh chore: simplify Dockerfile package install calls with bash wrappers (#31034) 2024-12-02 17:57:01 -08:00
docker-bootstrap.sh feat: get docker-compose to work as the backend for Cypress tests (#31796) 2025-01-17 16:19:39 -08:00
docker-frontend.sh feat: use npm run dev-server in docker-compose (#31876) 2025-01-15 18:21:12 -08:00
docker-init.sh chore: cypress set up tweaks (#31926) 2025-01-21 12:06:19 -08:00
frontend-mem-nag.sh Docker-Compose Memory Issue Fix? (#9285) 2020-03-13 09:25:54 -07:00
pip-install.sh fix: docker refactor (#31385) 2024-12-13 16:17:44 -08:00

README.md

Getting Started with Superset using Docker

Docker is an easy way to get started with Superset.

Prerequisites

  1. Docker
  2. Docker Compose

Configuration

The /app/pythonpath folder is mounted from ./docker/pythonpath_dev which contains a base configuration ./docker/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_dev/superset_config_local.example into ./docker/pythonpath_dev/superset_config_docker.py (git ignored) and fill in your overrides.

Local packages

If you want to add Python packages in order to test things like databases locally, you can simply add a local requirements.txt (./docker/requirements-local.txt) and rebuild your Docker stack.

Steps:

  1. Create ./docker/requirements-local.txt
  2. Add your new packages
  3. Rebuild docker compose
    1. docker compose down -v
    2. docker compose up

Initializing Database

The database will initialize itself upon startup via the init container (superset-init). This may take a minute.

Normal Operation

To run the container, simply run: docker compose up

After waiting several minutes for Superset initialization to finish, you can open a browser and view http://localhost:8088 to start your journey.

Developing

While running, the container server will reload on modification of the Superset Python and JavaScript source code. Don't forget to reload the page to take the new frontend into account though.

Production

It is possible to run Superset in non-development mode by using docker-compose-non-dev.yml. This file excludes the volumes needed for development.

Resource Constraints

If you are attempting to build on macOS and it exits with 137 you need to increase your Docker resources. See instructions here (search for memory)