{"id":20324649,"url":"https://github.com/gh640/gh640-cron-docker","last_synced_at":"2026-05-16T00:33:09.140Z","repository":{"id":74923643,"uuid":"237548588","full_name":"gh640/gh640-cron-docker","owner":"gh640","description":"A WordPress plugin which prevents WordPress automatic update from failing with port fowarding on Docker containers.","archived":false,"fork":false,"pushed_at":"2020-02-29T01:30:46.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T14:17:25.624Z","etag":null,"topics":["wordpress","wordpress-development","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/gh640.png","metadata":{"files":{"readme":"docs/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}},"created_at":"2020-02-01T02:10:51.000Z","updated_at":"2020-02-29T01:30:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"d48f45b5-a93b-47ca-bed3-0b071a5b9ee8","html_url":"https://github.com/gh640/gh640-cron-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/gh640%2Fgh640-cron-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fgh640-cron-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fgh640-cron-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fgh640-cron-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh640","download_url":"https://codeload.github.com/gh640/gh640-cron-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827891,"owners_count":20026791,"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":["wordpress","wordpress-development","wordpress-plugin"],"created_at":"2024-11-14T19:36:45.946Z","updated_at":"2026-05-16T00:33:09.113Z","avatar_url":"https://github.com/gh640.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `gh640-cron-docker`\n\nThis is a tiny WordPress plugin which prevents WordPress automatic update from\nfailing when run in a Docker container.\n\nWordPress doesn't recognize the own domain correctly if port fowarding is enabled for different ports when run in a Docker container:\n\n```yaml\nversion: \"3\"\n\nservices:\n  web:\n    image: wordpress:latest\n    ports:\n      - \"8000:80\"\n```\n\nThe automatic update triggered in the WP Cron fails if the own domain is not correct. A sample error message is:\n\n\u003e cURL error 7: Failed to connect to localhost port 8000 Connection refused\n\n## Usage\n\nInstall and activate the plugin and set up the following 2 environment variables:\n\n- `DOCKER_HTTP_PORT_GUEST`\n- `DOCKER_HTTP_PORT_HOST`\n\nHere is a simple example of `docker-compose.yml`:\n\n```yaml\nversion: \"3\"\n\nservices:\n  web:\n    image: wordpress:latest\n    environment:\n      DOCKER_HTTP_PORT_GUEST: 80\n      DOCKER_HTTP_PORT_HOST: 8000\n    ports:\n      - \"8000:80\"\n```\n\n## Tested on\n\n- WordPress 5.3.2\n- PHP 7.3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh640%2Fgh640-cron-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh640%2Fgh640-cron-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh640%2Fgh640-cron-docker/lists"}