{"id":20181910,"url":"https://github.com/devteds/e8-db-on-docker","last_synced_at":"2025-10-17T18:03:40.064Z","repository":{"id":132073136,"uuid":"106646894","full_name":"devteds/e8-db-on-docker","owner":"devteds","description":"MySQL \u0026 PostgreSQL with Docker in development. Devteds episode#8 https://devteds.com/episodes/8-mysql-and-postgresql-with-docker-in-development","archived":false,"fork":false,"pushed_at":"2017-10-13T01:17:03.000Z","size":2,"stargazers_count":9,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T05:10:49.167Z","etag":null,"topics":["containerization","db-on-docker","docker","docker-compose","mysql","mysql-on-docker","postgres-on-docker","postgresql"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devteds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-12T05:04:12.000Z","updated_at":"2023-09-28T04:08:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2eb2245-4ee9-49d9-8e27-757ef2c8fa2f","html_url":"https://github.com/devteds/e8-db-on-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Fe8-db-on-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Fe8-db-on-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Fe8-db-on-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devteds%2Fe8-db-on-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devteds","download_url":"https://codeload.github.com/devteds/e8-db-on-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161276,"owners_count":21057555,"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":["containerization","db-on-docker","docker","docker-compose","mysql","mysql-on-docker","postgres-on-docker","postgresql"],"created_at":"2024-11-14T02:37:07.910Z","updated_at":"2025-10-17T18:03:39.978Z","avatar_url":"https://github.com/devteds.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\nDevteds [Episode #8](https://devteds.com/episodes/8-mysql-and-postgresql-with-docker-in-development) source code\n\nRun multiple versions of MySQL databases and PostgreSQL with Docker using Docker Compose. Test multiple options of connecting to the databases running in containers.\n\n[![Episode Video Link](https://s3.us-east-2.amazonaws.com/devteds/episodes/e8-db-on-docker.png)](https://www.devteds.com/episodes/8-mysql-and-postgresql-with-docker-in-development)\n\n[Episode video link](https://youtu.be/q5J3rtAGGNU)\n\n\nVisit https://devteds.com to watch all the episodes\n\n## Tested on\n\n- macOS 10.12.3\n- Docker 17.06.2-ce\n- Docker Compose 1.14.0\n- MySQL Workbench 6.3\n\n## Run services\n\n```\nmkdir ~/projs\ncd ~/projs\ngit clone https://github.com/devteds/e8-db-on-docker.git db-on-docker\ncd db-on-docker\nmkdir data\ndocker-compose up\n\n# on new terminal tab\ncd ~/projs/db-on-docker\ndocker-compose ps\n```\n\n## Test connection - multiple options\n\n- Test connection w/ database client on host OS using host OS ports\n- Test with PHP based adminer tool that run on container - http://localhost:8080\n- Test with databse clients within running containers. Examples below\n\n```\ndocker-compose exec mysql-dev mysql -uroot -ppassword blogapp\ndocker-compose exec mysql-legacy mysql -uroot -ppassword legacyapp\ndocker-compose exec pgdb psql -U root -W blogapp\n```\n\n## A few useful commands\n\n```\ndocker-compose stop\ndocker-compose rm\ndocker-compose rm -f \n```\n\n## References\n\nFind the resources and references on [https://devteds.com/episodes/8-mysql-and-postgresql-with-docker-in-development](https://devteds.com/episodes/8-mysql-and-postgresql-with-docker-in-development)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevteds%2Fe8-db-on-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevteds%2Fe8-db-on-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevteds%2Fe8-db-on-docker/lists"}