{"id":15980983,"url":"https://github.com/macbre/test-wordpress-bitnami","last_synced_at":"2026-01-21T10:02:30.520Z","repository":{"id":141988081,"uuid":"534154930","full_name":"macbre/test-wordpress-bitnami","owner":"macbre","description":"The Docker Compose setup for the Bitnami-powered WordPress instance with SSH access and wp-cli installed. Can be easily put behind Traefik.","archived":false,"fork":false,"pushed_at":"2025-09-03T11:46:58.000Z","size":74,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-03T13:28:08.133Z","etag":null,"topics":["bitnami","openssh","traefik-docker","wordpress","wp-cli"],"latest_commit_sha":null,"homepage":"https://wptest.macbre.net/","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/macbre.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":"2022-09-08T10:10:31.000Z","updated_at":"2025-05-31T16:05:13.000Z","dependencies_parsed_at":"2024-12-20T15:51:12.537Z","dependency_job_id":"4110acab-8f52-4172-92da-03972ac76ea6","html_url":"https://github.com/macbre/test-wordpress-bitnami","commit_stats":{"total_commits":77,"total_committers":1,"mean_commits":77.0,"dds":0.0,"last_synced_commit":"e831815bad70cdc02ae990c3769cc925d7b8ad15"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/macbre/test-wordpress-bitnami","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ftest-wordpress-bitnami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ftest-wordpress-bitnami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ftest-wordpress-bitnami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ftest-wordpress-bitnami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macbre","download_url":"https://codeload.github.com/macbre/test-wordpress-bitnami/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macbre%2Ftest-wordpress-bitnami/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"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":["bitnami","openssh","traefik-docker","wordpress","wp-cli"],"created_at":"2024-10-08T00:23:45.270Z","updated_at":"2026-01-21T10:02:30.496Z","avatar_url":"https://github.com/macbre.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"test-wordpress-bitnami\n======================\n[![Test containers](https://github.com/macbre/test-wordpress-bitnami/actions/workflows/ci.yml/badge.svg)](https://github.com/macbre/test-wordpress-bitnami/actions/workflows/ci.yml)\n\nThis repo contains the Docker Compose setup for [the Bitnami-powered WordPress instance](https://hub.docker.com/r/bitnami/wordpress/) with SSH access and `wp-cli` installed. Can [be run easily behind Traefik](https://github.com/macbre/test-wordpress-bitnami#behind-traefik-proxy). \n\nOnce `docker compose up -d` is run (and the MySQL and WordPress is set up for the first time) you can:\n\n```\ncurl 0.0.0.0:8888 -s | grep -i generator\n```\n\n## Customize\n\nYou can provide some env variables via `.env` file:\n\n* `SSH_PASSWORD` (defaults to `p4ssw0rd`)\n* `WORDPRESS_DATABASE_PASSWORD` (defaults to `p4ssw0rd`)\n* `WORDPRESS_SITE_URL` (defaults to `http://localhost:8888`)\n* `WORDPRESS_HOSTNAME` (used to add routing label for Traefik, e.g. `wptest.myself.dev`)\n* `WORDPRESS_HTTP_PORT` (defaults to `8888`)\n\n\u003e You can use `head -c 500 /dev/urandom | md5 | base64` to generate them.\n\n## `wp-cli`\n\n[`wp-cli` tool](https://wp-cli.org/) is installed in both WordPress and SSH containers.\n\n```\n$ docker-compose exec ssh-dev wp post list\n+----+--------------+-------------+---------------------+-------------+\n| ID | post_title   | post_name   | post_date           | post_status |\n+----+--------------+-------------+---------------------+-------------+\n| 1  | Hello world! | hello-world | 2022-09-08 11:55:08 | publish     |\n+----+--------------+-------------+---------------------+-------------+\n```\n\n## Automated posts publishing\n\nCall `./publish.sh` from your crontab:\n\n```\n17 */4 *   *   *     /path/to/publish.sh 2\u003e\u00261 | tee -a $HOME/publish.log\n```\n\n\u003e Make sure `$PATH` is properly set up in the crontab.\n\n## Debugging \n\nYou can access the running WordPress container via:\n\n```\ndocker compose exec -i wordpress bash\n```\n\nAnd use SSH to get access to the WordPress file:\n\n```\nssh wordpress@0.0.0.0 -p62222 -i ssh_key\n\nopenssh-server:~$ ls -lh /opt/bitnami/wordpress | grep '/bitnami'\nlrwxrwxrwx  1 wordpress root        32 Sep 13 12:08 wp-config.php -\u003e /bitnami/wordpress/wp-config.php\nlrwxrwxrwx  1 wordpress root        29 Sep 13 12:08 wp-content -\u003e /bitnami/wordpress/wp-content\n```\n\n## Files and permissions\n\n* The WordPress instance is located at `/opt/bitnami/wordpress`.\n* WordPress files are owned by `wordpress(1001):root`.\n\n## Regenerate OpenSSH public key\n\n```\nssh-keygen -t ed25519 -f ssh_key -N ''\n```\n\n## Behind Traefik proxy\n\nThis container is ready [to be put behind Traefik](https://github.com/macbre/docker-traefik).\n\n1. [Clone the repo](https://github.com/macbre/docker-traefik) and run the Traefik container. \n2. Change your WordPress install to use https:\n\n```\nWORDPRESS_HTTP_PORT=8181\nWORDPRESS_SITE_URL=\"https://\u003cyour domain, e.g. test.myself.dev\u003e/\"\nWORDPRESS_HOSTNAME=\u003cyour domain, e.g. test.myself.dev\u003e\n```\n\n3. The requests reaching your WordPress container will be using HTTP (TLS is terminated at the Traefik level). So make sure to pretent that WordPress is handling https requests to avoid redirect loops:\n\n```php\n// Add this to your wp-config.php\n// ...\n// fix redirects loope when accessing /wp-admin and wp-login.php\n// https://wordpress.stackexchange.com/questions/170288/force-ssl-admin-not-working\ndefine('FORCE_SSL_ADMIN', true);\n\n// a comma-separated list e.g. http,https\nif (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {\n       $_SERVER['HTTPS']='on';\n}\n\n/* That's all, stop editing! Happy publishing. */\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacbre%2Ftest-wordpress-bitnami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacbre%2Ftest-wordpress-bitnami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacbre%2Ftest-wordpress-bitnami/lists"}