fix: "unhealthy" superset containers
Superset container were reported as "unhealthy" because the healthcheck was not testing the right port.
This commit is contained in:
parent
2adb2f57ed
commit
2e28c5d551
@ -16,6 +16,8 @@ cairn-superset-job:
|
||||
image: {{ CAIRN_SUPERSET_DOCKER_IMAGE }}
|
||||
volumes:
|
||||
- ../plugins/cairn/apps/superset/superset_config.py:/app/superset_config.py:ro
|
||||
healthcheck:
|
||||
disable: true
|
||||
depends_on:
|
||||
- cairn-postgresql
|
||||
- cairn-redis
|
||||
|
||||
@ -52,6 +52,8 @@ cairn-superset-worker:
|
||||
- ../plugins/cairn/apps/superset/superset_config.py:/app/superset_config.py:ro
|
||||
command: celery worker --app=superset.tasks.celery_app:app -Ofair -l INFO
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
disable: true
|
||||
depends_on:
|
||||
- cairn-redis
|
||||
- cairn-postgresql
|
||||
@ -61,6 +63,8 @@ cairn-superset-worker-beat:
|
||||
- ../plugins/cairn/apps/superset/superset_config.py:/app/superset_config.py:ro
|
||||
command: celery beat --app=superset.tasks.celery_app:app --pidfile /tmp/celerybeat.pid -l INFO --schedule=/tmp/celerybeat-schedule
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
disable: true
|
||||
depends_on:
|
||||
- cairn-redis
|
||||
- cairn-postgresql
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
# https://hub.docker.com/r/apache/superset
|
||||
# https://superset.apache.org/docs/databases/installing-database-drivers
|
||||
FROM docker.io/apache/superset:1.3.2
|
||||
USER superset
|
||||
|
||||
USER root
|
||||
|
||||
# https://pypi.org/project/clickhouse-driver/
|
||||
# https://pypi.org/project/clickhouse-sqlalchemy/
|
||||
@ -14,6 +15,10 @@ COPY --chown=superset:superset ./scripts /scripts
|
||||
RUN chmod a+x /scripts/*
|
||||
ENV PATH /scripts:${PATH}
|
||||
|
||||
USER superset
|
||||
|
||||
HEALTHCHECK CMD curl -f "http://localhost:8000"
|
||||
|
||||
ENTRYPOINT []
|
||||
CMD gunicorn \
|
||||
--bind "0.0.0.0:8000" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user