{"id":21499243,"url":"https://github.com/carlossalasamper/local-wordpress","last_synced_at":"2026-04-05T20:39:41.270Z","repository":{"id":214040638,"uuid":"735548494","full_name":"carlossalasamper/local-wordpress","owner":"carlossalasamper","description":"🐳 A local WordPress setup using Docker Compose.","archived":false,"fork":false,"pushed_at":"2023-12-25T10:19:51.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T12:50:39.689Z","etag":null,"topics":["docker","docker-compose","docker-wordpress","m","mariadb","mariadb-database","mysql","mysql-database","wordpress","wordpress-boilerplate","wordpress-development","wordpress-docker","wordpress-mysql"],"latest_commit_sha":null,"homepage":"","language":null,"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/carlossalasamper.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}},"created_at":"2023-12-25T10:11:03.000Z","updated_at":"2023-12-25T10:24:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"65223274-83bd-497c-b28a-85861ec31cd4","html_url":"https://github.com/carlossalasamper/local-wordpress","commit_stats":null,"previous_names":["carlossalasamper/local-wordpress"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carlossalasamper/local-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlossalasamper%2Flocal-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlossalasamper%2Flocal-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlossalasamper%2Flocal-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlossalasamper%2Flocal-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlossalasamper","download_url":"https://codeload.github.com/carlossalasamper/local-wordpress/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlossalasamper%2Flocal-wordpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31449834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"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-compose","docker-wordpress","m","mariadb","mariadb-database","mysql","mysql-database","wordpress","wordpress-boilerplate","wordpress-development","wordpress-docker","wordpress-mysql"],"created_at":"2024-11-23T17:15:06.186Z","updated_at":"2026-04-05T20:39:41.253Z","avatar_url":"https://github.com/carlossalasamper.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Local WordPress: WordPress + MySQL\n\nThis example defines one of the basic setups for WordPress with [Docker Compose](https://docs.docker.com/compose/).\n\nMore details on how this works can be found on the official [WordPress image page](https://hub.docker.com/_/wordpress).\n\n## Project structure\n\n```\n├── /assets\n├── docker-compose.yaml\n├── LICENSE\n└── README.md\n```\n\n[_docker-compose.yaml_](docker-compose.yaml)\n\n```\nservices:\n  wordpress-db:\n    # We use a mariadb image which supports both amd64 \u0026 arm64 architecture\n    image: mariadb:10.6.4-focal\n    # If you really want to use MySQL, uncomment the following line\n    #image: mysql:8.0.27\n    ...\n  wordpress:\n    image: wordpress:latest\n    ports:\n      - 80:80\n    restart: always\n    ...\n```\n\nWhen deploying this setup, docker compose maps the WordPress container port 80 to\nport 80 of the host as specified in the compose file.\n\n\u003e ℹ️ **_INFO_**  \n\u003e For compatibility purpose between `AMD64` and `ARM64` architecture, we use a MariaDB as database instead of MySQL.  \n\u003e You still can use the MySQL image by uncommenting the following line in the Compose file  \n\u003e `#image: mysql:8.0.27`\n\n## Deploy with docker compose\n\n```\n$ docker compose up -d\nCreating network \"wordpress-mysql_default\" with the default driver\nCreating volume \"wordpress-mysql_db_data\" with default driver\n...\nCreating wordpress-mysql_db_1        ... done\nCreating wordpress-mysql_wordpress_1 ... done\n```\n\n## Expected result\n\nCheck containers are running and the port mapping:\n\n```\n$ docker ps\nCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                 NAMES\n5fbb4181a069        wordpress:latest    \"docker-entrypoint.s…\"   35 seconds ago      Up 34 seconds       0.0.0.0:80-\u003e80/tcp    wordpress-mysql_wordpress_1\ne0884a8d444d        mysql:8.0.19        \"docker-entrypoint.s…\"   35 seconds ago      Up 34 seconds       3306/tcp, 33060/tcp   wordpress-mysql_db_1\n```\n\nNavigate to `http://localhost:80` in your web browser to access WordPress.\n\n![page](assets/screenshot.jpg)\n\nStop and remove the containers\n\n```\n$ docker compose down\n```\n\nTo remove all WordPress data, delete the named volumes by passing the `-v` parameter:\n\n```\n$ docker compose down -v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlossalasamper%2Flocal-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlossalasamper%2Flocal-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlossalasamper%2Flocal-wordpress/lists"}