https://github.com/treetips/schemaspy-mysql
Database table definition by SchemaSpy and you can browse that on docker.
https://github.com/treetips/schemaspy-mysql
docker nginx schemaspy table-definition
Last synced: 4 months ago
JSON representation
Database table definition by SchemaSpy and you can browse that on docker.
- Host: GitHub
- URL: https://github.com/treetips/schemaspy-mysql
- Owner: treetips
- Created: 2017-06-29T17:34:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T17:33:55.000Z (over 8 years ago)
- Last Synced: 2025-10-26T06:50:06.591Z (8 months ago)
- Topics: docker, nginx, schemaspy, table-definition
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SchemaSpy for mysql
[http://schemaspy.org/](SchemaSpy)
I output the table definition of the MySQL database using SchemaSpy and provide the environment identifying the table definition that SchemaSpy output from a browser.
SchemaSpyを使ってMySQLデータベースのテーブル定義を出力し、SchemaSpyが出力したテーブル定義をブラウザから確認する環境を提供します。
## Description
It was SchemaSpy where update had settled on, but update was reopened in a nice thing by a volunteer.
Because it was a good opportunity, I performed the table definition output of MySQL in SchemaSpy and decided to provide the environment that could easily confirm the definition book that I output from a browser.
Preparations for structure reading trouble to prepare for Graphviz environment in preparations and Alpine linux of the JDBC driver and the table definition that I output can omit troublesome work.
更新が止まってしまったSchemaSpyですが、嬉しい事に有志によって更新が再開されました。
いい機会なので、MySQLのテーブル定義出力をSchemaSpyで行い、出力した定義書をブラウザから簡単に確認できる環境を提供する事にしました。
JDBCドライバの準備や、Alpine linuxにGraphviz環境を準備する手間や、出力したテーブル定義を閲覧する仕組みの準備等、面倒な作業を省く事ができます。
## Features
- SchemaSpy v6.0
- MySQL-server(any version)
- Dcoker v17
- docker-compose v1.14
- alpine:3.6 v3.7
- nginx:1.13.9-alpine
## Requirement
- Docker(version 1.13.0 or higher)
- docker-compose
## Screenshot
### Table list

### Relationship

### Table detail

## Usage
```bash
# git clone
git clone https://github.com/treetips/simple-static-file-viewer.git
# Run containers and execute SchemaSpy
docker-compose up -d
# Update table definition
docker-compose run --rm schemaspy
# Browse table definition
http://localhost:8081/
```
## Change database settings
`schemaspy.properties` is the database connection configuration file.
Restart docker-compose after edit settings.
`schemaspy.properties` がデータベース接続設定ファイルです。
データベースに設定情報に修正し、修正した後はdocker-composeを再起動して下さい。
## Change Lang
Edit docker-compose.yml.
environment:
- LANG=ja_JP.UTF-8
## Change timezone
Edit docker-compose.yml.
environment:
- TZ=Asia/Tokyo
# Customie nginx
Customize default.conf freely.
default.conf is read as follows by nginx.conf.
default.confを自由にカスタマイズして下さい。
default.confは以下のようにnginx.confによって読み込まれます。
include /etc/nginx/conf.d/*.conf;
## Known issue
It is fixed, and it seems to be to 3306 without becoming the designation ても existence effect in port in schemaspy.properties when SchemaSpy has a bug and chooses MySQL for a database.
SchemaSpyにはバグが有り、データベースにMySQLを選択した場合、schemaspy.propertiesでportを指定ても有効にならず、固定で3306になってしまうようです。
## License
[MIT](http://b4b4r07.mit-license.org)