Skip to content

Commit

Permalink
Remove hard coded password in compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
FulcronZ committed Aug 26, 2024
1 parent d1980c2 commit d4b77de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ services:
image: clickhouse/clickhouse-server:24.6
environment:
CLICKHOUSE_DB: analytics
CLICKHOUSE_USER: admin
CLICKHOUSE_PASSWORD: 12345678
CLICKHOUSE_USER: $ANALYTICS_DWH_USER
CLICKHOUSE_PASSWORD: $ANALYTICS_DWH_PASSWORD
volumes:
- ./compose/analytics-dwh/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
- analytics-dwh-data:/var/lib/clickhouse
Expand Down
3 changes: 3 additions & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ echo $METABASE_DB_PASSWORD > compose/metabase-db/secrets/db_password.txt

echo -n Generating compose/.env .
cat > compose/.env <<EOF
ANALYTICS_DWH_USER=admin
ANALYTICS_DWH_PASSWORD=$ANALYTICS_DWH_PASSWORD
DAGSTER_DB_USERNAME=postgres
DAGSTER_DB_PASSWORD=$APP_DB_PASSWORD
DAGSTER_CLICKHOUSE_USERNAME=admin
Expand Down

0 comments on commit d4b77de

Please sign in to comment.