{"id":19976049,"url":"https://github.com/dockette/packagist","last_synced_at":"2025-07-11T17:43:03.180Z","repository":{"id":8718747,"uuid":"59460042","full_name":"dockette/packagist","owner":"dockette","description":":whale: Dockette out-of-box Packagist (Nginx / Solr 6 / PHP 7.1+FPM)","archived":false,"fork":false,"pushed_at":"2025-01-06T12:39:26.000Z","size":68,"stargazers_count":34,"open_issues_count":0,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-04T02:39:59.777Z","etag":null,"topics":["composer","docker","packagist","php"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/dockette.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},"funding":{"github":["f3l1x"]}},"created_at":"2016-05-23T07:08:44.000Z","updated_at":"2025-02-20T07:15:20.000Z","dependencies_parsed_at":"2025-05-04T02:35:45.382Z","dependency_job_id":"3c1cf19b-9bce-41dd-ac61-3ec8a0759b31","html_url":"https://github.com/dockette/packagist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dockette/packagist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fpackagist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fpackagist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fpackagist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fpackagist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockette","download_url":"https://codeload.github.com/dockette/packagist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fpackagist/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264864053,"owners_count":23675284,"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":["composer","docker","packagist","php"],"created_at":"2024-11-13T03:21:40.044Z","updated_at":"2025-07-11T17:43:03.174Z","avatar_url":"https://github.com/dockette.png","language":"Shell","funding_links":["https://github.com/sponsors/f3l1x"],"categories":[],"sub_categories":[],"readme":"# Packagist\n\nWell-prepeared Packagist docker image(s). Run you own composer packagist portal in Docker.\n\n\u003e [!TIP]\n\u003e [since 2024] Use awesome self-hosted Packagist/Composer/Satis repository with unlimited private repos called [Packeton](https://bit.ly/3PosO4p).\n\n-----\n\n[![Docker Stars](https://img.shields.io/docker/stars/dockette/packagist.svg?style=flat)](https://hub.docker.com/r/dockette/packagist/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/dockette/packagist.svg?style=flat)](https://hub.docker.com/r/dockette/packagist/)\n\n## Discussion / Help\n\n[![Join the chat](https://img.shields.io/gitter/room/dockette/dockette.svg?style=flat-square)](https://gitter.im/dockette/dockette?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## Architecture\n\nThis whole project consists of 4 containers and 1 data-only container.\n\n- Packagist (nginx,php)\n- MariaDB (database)\n- Redis (memory storage)\n- Solr (search engine)\n\nThis version is [locked to](https://github.com/composer/packagist/commit/2d90743bec035e87928f4afa356ba28a1547608f) version before Packagist switched search engine to Algolia.\n\n## Installation\n\nDownload prepared `docker-compose.yml` to your pc / server.\n\n### Solr\n\nCreate `data/solr` folder a chown file permission to ID `8983`.\n\n```\nchown 8983:8983 data/solr\n```\n\n### Packagist\n\nYou should change prepared configuration.\n\n- `PACKAGIST_DATABASE_USER` (packagist)\n- `PACKAGIST_DATABASE_PASSWORD` (packagist)\n\n## Usage\n\nType `docker-compose up -d` and see the magic.\n\n\n### MySQL\n\nExecute all packagist MySQL migrations.\n\n```\ndocker-compose exec packagist /srv/app/console doctrine:schema:create\n```\n\n### Packagist\n\nPlease create your account and add some composer package.\n\n```\ndocker-compose exec --user www-data packagist /srv/app/console packagist:update --no-debug --env=prod --force\ndocker-compose exec --user www-data packagist /srv/app/console packagist:dump --no-debug --env=prod --force\n```\n\nAttribute `force` is needed for the first-run.\n\n#### SSH\n\nYou can provide your own SSH keys, just uncommenting lines in docker-compose.yml.\n\n```\nvolumes:\n  - ./config/ssh/config:/var/www/.ssh/config\n  - ./config/ssh/id_rsa:/var/www/.ssh/id_rsa\n  - ./config/ssh/id_rsa.pub:/var/www/.ssh/id_rsa.pub\n  - ./config/ssh/known_hosts:/var/www/.ssh/known_hosts\n```\n\nDon't forget to change owernership to Alpine's user www-data (82:82).\n\n```\nsudo chown -R 82:82 config id_rsa id_rsa.pub known_hosts\n```\n\n### Solr\n\nIndex your first composer package.\n\n```\ndocker-compose exec packagist /srv/app/console packagist:index --no-debug --env=prod --force\n```\n\n## Cron\n\nCron is configured per 1 minute. You can change by replacing these files:\n\n- /etc/crontabs/root\n- /etc/periodic/1min/packagist\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockette%2Fpackagist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockette%2Fpackagist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockette%2Fpackagist/lists"}