{"id":19907196,"url":"https://github.com/andrewwhitehead/schemaspy-docker","last_synced_at":"2025-05-03T02:30:52.437Z","repository":{"id":53559239,"uuid":"94469288","full_name":"andrewwhitehead/schemaspy-docker","owner":"andrewwhitehead","description":"Quickly run SchemaSpy on a database and serve the results","archived":false,"fork":false,"pushed_at":"2021-03-24T13:01:45.000Z","size":12,"stargazers_count":7,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-05T05:03:52.872Z","etag":null,"topics":["docker","mysql","postgresql","schemaspy","sqlite3"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewwhitehead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-15T18:49:35.000Z","updated_at":"2022-05-26T15:02:49.000Z","dependencies_parsed_at":"2022-08-20T16:31:24.406Z","dependency_job_id":null,"html_url":"https://github.com/andrewwhitehead/schemaspy-docker","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewwhitehead%2Fschemaspy-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewwhitehead%2Fschemaspy-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewwhitehead%2Fschemaspy-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewwhitehead%2Fschemaspy-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewwhitehead","download_url":"https://codeload.github.com/andrewwhitehead/schemaspy-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224347680,"owners_count":17296425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","mysql","postgresql","schemaspy","sqlite3"],"created_at":"2024-11-12T20:39:28.424Z","updated_at":"2024-11-12T20:39:29.201Z","avatar_url":"https://github.com/andrewwhitehead.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# schemaspy-docker\n\nQuickly run SchemaSpy on a MySQL, Postgres or SQLite3 database in order\nto generate a browsable visualization of the tables, columns, and relationships.\n\nBased on `frolvlad/alpine-oraclejdk8:slim`. After running SchemaSpy to produce the\nHTML content, the results are served by busybox httpd.\n\nSchemaSpy is available at: https://github.com/schemaspy/schemaspy\n\nSee also: https://github.com/bcgov/schemaspy\n\n## Sample Docker build command\n\n```\ndocker build -t schemaspy https://github.com/cywolf/schemaspy-docker.git\n```\n\n## Sample MySQL Usage\n\n```\ndocker run -ti --rm --name schemaspy \\\n\t-p 8080:8080 \\\n\t-e DATABASE_TYPE=mysql \\\n\t-e DATABASE_HOST=mysql -e DATABASE_NAME=mydatabase \\\n\t-e DATABASE_USER=root -e DATABASE_PASSWORD=mysecretpassword \\\n\t--link mysql \\\n\tschemaspy\n```\n\n## Sample Postgres Usage\n\n```\ndocker run -ti --rm --name schemaspy \\\n\t-p 8080:8080 \\\n\t-e DATABASE_TYPE=pgsql \\\n\t-e DATABASE_HOST=postgres -e DATABASE_NAME=mydatabase \\\n\t-e DATABASE_USER=postgres -e DATABASE_PASSWORD=mysecretpassword \\\n\t--link postgres \\\n\tschemaspy\n```\n\n## Sample SQLite3 Usage\n\n```\nmkdir data \u0026\u0026 cp mydatabase.sqlite3 data/\ndocker run -ti --rm --name schemaspy \\\n\t-p 8080:8080 \\\n\t-v \"$PWD/data\":/app/data \\\n\t-e DATABASE_TYPE=sqlite \\\n\t-e DATABASE_NAME=/app/data/mydatabase.sqlite3 \\\n\tschemaspy\n```\n\n## Environment variables\n\n`DATABASE_TYPE`: One of `mysql`, `pgsql`, or `sqlite`. Other database types are\n\tsupported by SchemaSpy, but their JDBC connector libraries are not currently\n\tincluded.\n\n`DATABASE_HOST`: The hostname of the database server, likely the name of\n\tanother Docker container which has been linked to this one.\n\n`DATABASE_NAME`: The name of the target database.\n\n`DATABASE_USER`, `DATABASE_PASSWORD`: The username and password used to establish\n\tthe database connection.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewwhitehead%2Fschemaspy-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewwhitehead%2Fschemaspy-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewwhitehead%2Fschemaspy-docker/lists"}