Skip to content

Commit

Permalink
wait for pg database; sleep to avoid process conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthenian8 committed Oct 25, 2023
1 parent d73b8d4 commit e8e725d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions dff/utils/docker/entrypoint_stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export SERVER_THREADS_AMOUNT=8
set -m
nohup /bin/bash /usr/bin/run-server.sh &
sleep 5
superset fab create-admin --firstname superset --lastname admin --username $SUPERSET_USERNAME --email [email protected] --password $SUPERSET_PASSWORD
superset db upgrade
superset init
Expand Down
1 change: 0 additions & 1 deletion dff/utils/docker/superset_config_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
os.getenv("SUPERSET_METADATA_PORT"),
os.getenv("POSTGRES_DB"),
)
SQLALCHEMY_ECHO = True
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
image: ghcr.io/deeppavlov/superset_df_dashboard:latest
depends_on:
dashboard-metadata:
condition: service_started
condition: service_healthy
clickhouse:
condition: service_started
profiles:
Expand All @@ -70,6 +70,11 @@ services:
ports:
- 5433:5433
command: -p 5433
healthcheck:
test: pg_isready -p 5433
interval: 4s
timeout: 3s
retries: 3
clickhouse:
env_file: [.env_file]
image: clickhouse/clickhouse-server:latest
Expand Down

0 comments on commit e8e725d

Please sign in to comment.