diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index becfb00b2668f..0773bebf98dd3 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -50,6 +50,8 @@ RUN pip install --upgrade setuptools pip \ && pip install -r requirements.txt -r requirements-dev.txt \ && rm -rf /root/.cache/pip +RUN pip install gevent + COPY --chown=superset:superset superset superset ENV PATH=/home/superset/superset/bin:$PATH \ diff --git a/contrib/docker/README.md b/contrib/docker/README.md index 0c3146f7e7347..e85c6c8d8ff33 100644 --- a/contrib/docker/README.md +++ b/contrib/docker/README.md @@ -26,7 +26,7 @@ Docker is an easy way to get stated with Superset. To initialize the database with a user and example charts, dashboards and datasets run: ```bash -SUPERSET_LOAD_EXAMPLES=yes docker-compose run --rm superset ./docker-init.sh +docker-compose run -e SUPERSET_LOAD_EXAMPLES=yes --rm superset ./docker-init.sh ``` This may take a minute. diff --git a/contrib/docker/docker-compose.yml b/contrib/docker/docker-compose.yml index cd9b31e074951..7a502956da6c4 100644 --- a/contrib/docker/docker-compose.yml +++ b/contrib/docker/docker-compose.yml @@ -20,7 +20,7 @@ services: image: redis:3.2 restart: unless-stopped ports: - - 6379:6379 + - "127.0.0.1:6379:6379" volumes: - redis:/data @@ -32,7 +32,7 @@ services: POSTGRES_PASSWORD: superset POSTGRES_USER: superset ports: - - 5432:5432 + - "127.0.0.1:5432:5432" volumes: - postgres:/var/lib/postgresql/data @@ -52,6 +52,7 @@ services: # If using production, comment development volume below #SUPERSET_ENV: production SUPERSET_ENV: development + user: root:root ports: - 8088:8088 depends_on: