{"id":30580610,"url":"https://github.com/gioxx/yourls-dockercustom","last_synced_at":"2026-05-18T15:07:56.223Z","repository":{"id":308353750,"uuid":"992205480","full_name":"gioxx/YOURLS-DockerCustom","owner":"gioxx","description":"A YOURLS Docker custom image with ZipArchive pre-installed","archived":false,"fork":false,"pushed_at":"2026-04-22T20:48:17.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T22:29:30.989Z","etag":null,"topics":["docker","docker-image","yourls"],"latest_commit_sha":null,"homepage":"https://gioxx.org","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gioxx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-28T19:32:02.000Z","updated_at":"2026-04-22T20:48:14.000Z","dependencies_parsed_at":"2025-09-29T19:33:45.248Z","dependency_job_id":null,"html_url":"https://github.com/gioxx/YOURLS-DockerCustom","commit_stats":null,"previous_names":["gioxx/yourls-dockercustom"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gioxx/YOURLS-DockerCustom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioxx%2FYOURLS-DockerCustom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioxx%2FYOURLS-DockerCustom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioxx%2FYOURLS-DockerCustom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioxx%2FYOURLS-DockerCustom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gioxx","download_url":"https://codeload.github.com/gioxx/YOURLS-DockerCustom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioxx%2FYOURLS-DockerCustom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33181839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","docker-image","yourls"],"created_at":"2025-08-29T05:39:15.030Z","updated_at":"2026-05-18T15:07:56.207Z","avatar_url":"https://github.com/gioxx.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YOURLS Docker Custom Image with ZipArchive\n\nThis repository contains a custom Docker image for [YOURLS](https://yourls.org/) based on the official image, with the `ZipArchive` PHP extension enabled. This extension is required by various YOURLS plugins and for file-based features that depend on zip support.\n\n## 🧱 Base Image\n\nThis image extends the official [`YOURLS`](https://hub.docker.com/_/yourls) Docker image.\n\n## ✅ Features\n\n- Based on `yourls:latest`\n- Adds the PHP `zip` extension via `docker-php-ext-install`\n- Installs required system libraries (`libzip-dev`, `unzip`)\n- Clean and production-ready Docker layer\n\n## 📦 Usage\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/gioxx/YOURLS-DockerCustom.git\ncd YOURLS-DockerCustom\n```\n\n### 2. Build the image\n\n```bash\ndocker build -t yourls-custom:zip .\n```\n\n### 3. Run a container\n\n```bash\ndocker run -d --name yourls \\\n  -e YOURLS_SITE=\"http://localhost:8080\" \\\n  -e YOURLS_USER=\"admin\" \\\n  -e YOURLS_PASS=\"yourpassword\" \\\n  -p 8080:80 \\\n  yourls-custom:zip\n```\n\n### 4. Verify `zip` extension is enabled\n\n```bash\ndocker exec -it yourls php -m | grep zip\n# Expected output: zip\n```\n\n## 🛳️ Docker Compose: a practical example\n\nI created and tested the image on Portainer, then created a stack that uses the custom image. I offer a practical example of a Stack (Docker Compose) that you can use as well.  \nI recommend, of course, **that you change passwords for the database and YOURLS administrator user**, especially if you plan to use it in a production environment (I only use it for development and plugin testing, in a local environment not exposed to the Internet).\n\n```bash\nservices:\n  yourls:\n    image: yourls-custom:latest\n\n    restart: unless-stopped\n    ports:\n      - 8080:80\n    environment:\n      YOURLS_DB_PASS: password\n      YOURLS_DB_USER: root\n      YOURLS_DB_NAME: yourls\n      YOURLS_DB_HOST: mysql\n      YOURLS_SITE: http://localhost:8080\n      YOURLS_USER: admin\n      YOURLS_PASS: password\n    volumes:\n      - /DEMO/YOURLS:/var/www/html/user\n\n  mysql:\n    image: mysql\n    restart: unless-stopped\n    environment:\n      MYSQL_ROOT_PASSWORD: password\n      MYSQL_DATABASE: yourls\n\nvolumes:\n  db_data:\n```\n\nHaving a volume mounted on the local file system will allow you to easily get your hands on all commonly used configurations and folders in YOURLS, but it is optional.\n\n## 🔁 Optional: Push to a Container Registry\n\nYou can push this image to Docker Hub or GitHub Container Registry (GHCR) for CI/CD usage or deployment:\n\n```bash\ndocker tag yourls-custom:zip ghcr.io/gioxx/yourls-custom:zip\ndocker push ghcr.io/gioxx/yourls-custom:zip\n```\n\n## 📂 File Overview\n\n- `Dockerfile`: Extends the base image and installs `ZipArchive`.\n- `.dockerignore`: Excludes unnecessary files from the build context.\n- `README.md`: This file.\n\n## 📘 References\n\n- [YOURLS Official Site](https://yourls.org/)\n- [YOURLS on Docker Hub](https://hub.docker.com/r/yourls/yourls)\n- [PHP zip extension](https://www.php.net/manual/en/book.zip.php)\n\n## 📜 License\n\nThis repository inherits the [YOURLS license](https://github.com/YOURLS/YOURLS/blob/master/LICENSE). Modifications are provided under the same terms.\n\n## 💬 About\n\nLovingly developed by the usually-on-vacation brain cell of [Gioxx](https://github.com/gioxx).  \nVisit [gioxx.org](https://gioxx.org) for blog posts, tech, and other things.\n\n## 🙌 Contributing\n\nPull requests and feature suggestions are welcome.  \nIf you find bugs or have feature requests, [open an issue](https://github.com/gioxx/YOURLS-DockerCustom/issues).  \nIf you find it useful, leave a ⭐ on GitHub! ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgioxx%2Fyourls-dockercustom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgioxx%2Fyourls-dockercustom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgioxx%2Fyourls-dockercustom/lists"}