{"id":29353753,"url":"https://github.com/thiaudiott/devdb.sh","last_synced_at":"2026-05-10T16:45:36.601Z","repository":{"id":302897649,"uuid":"1013871735","full_name":"ThiaudioTT/devdb.sh","owner":"ThiaudioTT","description":"Manage development databases fast and easily","archived":false,"fork":false,"pushed_at":"2025-07-04T16:15:12.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T17:19:19.271Z","etag":null,"topics":["docker","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ThiaudioTT.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,"zenodo":null}},"created_at":"2025-07-04T15:53:33.000Z","updated_at":"2025-07-04T16:15:15.000Z","dependencies_parsed_at":"2025-07-04T17:19:21.155Z","dependency_job_id":"aa74988f-54e5-4f15-a517-b863d0a78384","html_url":"https://github.com/ThiaudioTT/devdb.sh","commit_stats":null,"previous_names":["thiaudiott/devdb.sh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThiaudioTT/devdb.sh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiaudioTT%2Fdevdb.sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiaudioTT%2Fdevdb.sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiaudioTT%2Fdevdb.sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiaudioTT%2Fdevdb.sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThiaudioTT","download_url":"https://codeload.github.com/ThiaudioTT/devdb.sh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiaudioTT%2Fdevdb.sh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264379216,"owners_count":23598824,"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","shell"],"created_at":"2025-07-09T02:09:10.247Z","updated_at":"2026-05-10T16:45:36.585Z","avatar_url":"https://github.com/ThiaudioTT.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Devdb.sh\n\nDevdb.sh is a simple script in shell to manage development databases. It allows you to easily start, reset, and connect to a local development PostgreSQL database or Redis instance using Docker.\n\nUpdate and install with:\n```bash\nsudo wget -qO /usr/local/bin/devdb https://github.com/ThiaudioTT/devdb.sh/raw/main/devdb.sh \u0026\u0026 sudo chmod +x /usr/local/bin/devdb\n```\n\nNow you can simply run:\n\n```bash\ndevdb            # to start or resume the dev database\ndevdb --reset    # to reset and recreate\ndevdb --redis    # to start Redis with RedisInsight (port 5540)\ndevdb --publish  # to bind to 0.0.0.0 and make services accessible from LAN\n```\n\nYou can combine flags:\n\n```bash\ndevdb --redis --publish  # Redis accessible from LAN\ndevdb --reset --publish  # Reset and make accessible from LAN\n```\n\n## PostgreSQL\n\nThe script will output:\n\n```bash\nexport DATABASE_URL='postgresql://postgres@127.0.0.1:5432/postgres'\n```\n\nAdd that line to your shell or `.env` file to connect.\n\n## Redis\n\nWhen using the `--redis` flag, the script will output:\n\n```bash\nexport REDIS_URL='redis://127.0.0.1:6379'\n```\n\nRedis features:\n\n- Redis server on port 6379 (no password)\n- RedisInsight web interface on port 5540\n- Data is automatically wiped and recreated each time you run `devdb --redis`\n\nAccess RedisInsight at: \u003chttp://127.0.0.1:5540\u003e\n\n## LAN Access (--publish)\n\nBy default, services are bound to `127.0.0.1` (localhost only). Use the `--publish` flag to bind to `0.0.0.0` and make your development database accessible from other devices on your LAN network.\n\n**Examples:**\n\n```bash\ndevdb --publish        # PostgreSQL accessible from LAN\ndevdb --redis --publish # Redis and RedisInsight accessible from LAN\n```\n\n\u003e [!IMPORTANT]\n\u003e  If you have an existing running container and switch between local (`127.0.0.1`) and LAN (`0.0.0.0`) access, the script will automatically recreate the container with the correct port bindings. Your data will be preserved for PostgreSQL, but Redis data will be wiped and recreated (this is normal Redis behavior in this script).\n\n\u003e [!WARNING]\n\u003e  Only use `--publish` in trusted networks, as it exposes your development database to the entire LAN.\n\n### Unpublishing\n\nTo revert back to local-only access, simply run the command without the `--publish` flag:\n\n```bash\ndevdb            # Switch back to localhost only for PostgreSQL\ndevdb --redis    # Switch back to localhost only for Redis\n```\n\nYou can also use the `--reset` flag to reset and unpublish at the same time:\n\n```bash\ndevdb --reset    # Reset and switch back to localhost only for PostgreSQL\ndevdb --redis --reset # Reset and switch back to localhost only for Redis\n```\n\nAnother alternative is to manually stop and remove the running container.\n\n---\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://safebooru.org//samples/1044/sample_b291050f87ce6c95ff5644f3005fd5be5640b682.jpg?5920096\" width=\"400px\"/\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiaudiott%2Fdevdb.sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiaudiott%2Fdevdb.sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiaudiott%2Fdevdb.sh/lists"}