Docker database initialization for MySQL and PostgreSQL
1.9K
Docker database initialization for MySQL and PostgreSQL.
Direct usage:
docker run --rm \
-e DB_TYPE=postgresql \
-e DB_ROOT_PASSWORD=password \
-e DB_HOST=host_name \
-e DB_DATABASE=database_to_create \
-e DB_USER=user_to_create \
-e DB_PASSWORD=user_password \
bboehmke/db-helper
In compose file:
services:
db_init:
image: bboehmke/db-helper
environment:
- DB_TYPE=postgresql
- DB_ROOT_PASSWORD=password
- DB_HOST=host_name
- DB_DATABASE=database_to_create
- DB_USER=user_to_create
- DB_PASSWORD=user_password
app:init but remove all tables from databaseDB_DATABASEDB_USER15min, hourly, daily, weekly or monthlyContent type
Image
Digest
Size
13.2 MB
Last updated
over 6 years ago
docker pull bboehmke/db-helper