Create admin when booting up

This commit is contained in:
Uku Taht 2020-10-01 13:56:05 +03:00
parent 2229a63ee4
commit 98f72b21ec

View File

@ -26,7 +26,7 @@ services:
plausible: plausible:
image: plausible/analytics:dev image: plausible/analytics:dev
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run" command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin /entrypoint.sh run"
depends_on: depends_on:
- plausible_db - plausible_db
- plausible_events_db - plausible_events_db