Docker container to output PlantUML from MySQL using Database-to-PlantUML.
latest
only
$ docker container run innovatorjapan/mysql-to-plantuml:latest [OPTIONS]
docker container run --rm --network="mysql" innovatorjapan/mysql-to-plantuml:latest -d "mysql:host=mysql_host:3306" -s test_db > test.uml
In this example, connect to the mysql
network and resolve mysql_host
. And output test_db
schema to test.uml.
Name, shorthand | Default | Description |
---|---|---|
--database-schema, -s | Database name (required) | |
--database-dsn, -d | "mysql:host=localhost" | Database DSN (optional) |
--database-user, -u | "root" | Database username (optional) |
--database-password, -p | "" | Database password (optional) |
--help, -h | print help |