{"id":22018538,"url":"https://github.com/flavienbwk/apt-mirror-docker","last_synced_at":"2025-07-21T03:32:32.082Z","repository":{"id":124243276,"uuid":"256327258","full_name":"flavienbwk/apt-mirror-docker","owner":"flavienbwk","description":"Up to date apt-mirror script, containerized for mirroring + serving.","archived":false,"fork":false,"pushed_at":"2024-03-19T11:04:48.000Z","size":20,"stargazers_count":54,"open_issues_count":3,"forks_count":25,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-07T03:34:14.671Z","etag":null,"topics":["apt","apt-mirror","docker","docker-compose","linux-mirror","offline"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flavienbwk.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}},"created_at":"2020-04-16T20:52:28.000Z","updated_at":"2025-04-19T19:42:15.000Z","dependencies_parsed_at":"2025-05-07T03:42:59.012Z","dependency_job_id":null,"html_url":"https://github.com/flavienbwk/apt-mirror-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flavienbwk/apt-mirror-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fapt-mirror-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fapt-mirror-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fapt-mirror-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fapt-mirror-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavienbwk","download_url":"https://codeload.github.com/flavienbwk/apt-mirror-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fapt-mirror-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266235422,"owners_count":23897179,"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":["apt","apt-mirror","docker","docker-compose","linux-mirror","offline"],"created_at":"2024-11-30T05:12:30.554Z","updated_at":"2025-07-21T03:32:32.065Z","avatar_url":"https://github.com/flavienbwk.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apt-mirror-docker\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.com/flavienbwk/apt-mirror-docker.svg?branch=master\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://travis-ci.com/flavienbwk/apt-mirror-docker.svg?branch=master\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003eUp to date apt-mirror script, containerized for mirroring + serving.\u003c/p\u003e\n\nThis repository merges [geosone's](https://github.com/geosone/apt-mirror) and [liedekef's](https://github.com/liedekef/apt-mirror) updates from the (sadly) unmaintained [apt-mirror repository](https://github.com/apt-mirror/apt-mirror)\n\n\u003cp align=\"center\"\u003eStatus : tested \u0026 working :heavy_check_mark:\u003c/p\u003e\n\n## To know\n\nAn Ubuntu archive mirror may **[update every 6 hours](https://wiki.ubuntu.com/Mirrors)** (4 times a day, timezone depending on mirror's location). To avoid a bad sync, launch sync of your mirror ~15 minutes after midnight, 6am, noon or 6pm (consider mirror's timezone).\n\nThat is to say your download time shoudln't exceed 6 hours to be safe : that's why I recommended using [a cloud provider](https://scaleway.com) for download and then retrieve it with `rsync` for example.\n\n## Downloading \u0026 updating\n\n1. Edit the `mirror.list` file at your convenience\n\n2. Run the `mirror` container :\n\n    ```bash\n    docker-compose build\n    docker-compose up mirror\n    ```\n\n\u003e This repository is shipped with the Ubuntu 18.04 default `mirror.list` (expect ~210Gb to be downloaded)\n\n## Serving\n\n1. Check your mirroring succeeded in `./mirror/mirror/*` or typing `du -sh ./mirror`\n\n    You are expected to download around **210 Gb** of files at the time of writing.\n\n2. Run the server :\n\n    ```bash\n    docker-compose up -d server\n    ```\n\n    Server will run on [`localhost:8080`](http://localhost:8080)  \n\n:point_right: Feel free to add a reverse proxy or update the [nginx configuration file](./nginx.conf) to secure the mirror with SSL/TLS  \n:point_right: Feel free to send **pull requests** as well !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fapt-mirror-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavienbwk%2Fapt-mirror-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fapt-mirror-docker/lists"}