{"id":22400230,"url":"https://github.com/unleftie/wordpress-compose","last_synced_at":"2026-04-18T06:31:37.266Z","repository":{"id":139276289,"uuid":"571213041","full_name":"unleftie/wordpress-compose","owner":"unleftie","description":"A docker compose for WordPress","archived":false,"fork":false,"pushed_at":"2024-12-09T12:10:44.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T05:42:29.283Z","etag":null,"topics":["compose","docker","mariadb","wordpress"],"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/unleftie.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":"2022-11-27T14:29:32.000Z","updated_at":"2024-12-09T12:10:48.000Z","dependencies_parsed_at":"2023-12-30T15:25:13.590Z","dependency_job_id":"d114c12f-c506-4858-b333-e82f1972dab0","html_url":"https://github.com/unleftie/wordpress-compose","commit_stats":null,"previous_names":["denysrondaliev/wordpress-compose","unleftie/wordpress-compose"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unleftie%2Fwordpress-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unleftie%2Fwordpress-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unleftie%2Fwordpress-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unleftie%2Fwordpress-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unleftie","download_url":"https://codeload.github.com/unleftie/wordpress-compose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245755682,"owners_count":20667027,"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":["compose","docker","mariadb","wordpress"],"created_at":"2024-12-05T08:11:50.796Z","updated_at":"2026-04-18T06:31:32.239Z","avatar_url":"https://github.com/unleftie.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A docker compose for WordPress\n\n## Dependencies\n\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose plugin](https://docs.docker.com/compose/install/)\n\n## Installation\n\n```bash\ngit clone https://github.com/unleftie/wordpress-compose.git\ncd wordpress-compose\ncp .env.example .env\nchmod 755 -R mariadb\ndocker compose up -d\n```\n\n## Restoring MariaDB data from SQL dump file\n\nNote that you need to fix URL value at **wp_options** table, if it is different from the past one\n\nFile **dump_name.sql** should contain old WP database and tables. Value $WORDPRESS_DB_NAME must match this database\n\n```bash\ndocker exec -u root -i test-mariadb sh -c 'mariadb -u root -p\"$MARIADB_ROOT_PASSWORD\"' \u003c dump_name.sql\ndocker exec -u root -i test-mariadb sh -c 'mariadb -u root -p\"$MARIADB_ROOT_PASSWORD\" -D $MARIADB_DATABASE -e \"GRANT ALL PRIVILEGES ON $MARIADB_DATABASE.* TO $MARIADB_USER;\"'\ndocker exec -u root -i test-mariadb sh -c 'mariadb -u root -p\"$MARIADB_ROOT_PASSWORD\" -D $MARIADB_DATABASE -e \"FLUSH PRIVILEGES;\"'\ndocker restart test-mariadb\n```\n\n## Creating SQL dump file with MariaDB data\n\n```bash\ndocker exec test-mariadb sh -c 'mariadb-dump -u root --databases $MARIADB_DATABASE --debug-info -p\"$MARIADB_ROOT_PASSWORD\"' \u003e dump_name.sql\n```\n\n## Restoring wp-content data from backup\n\n```bash\ndocker cp wp-content/ test-wordpress:/tmp/wp-content/\ndocker exec -u root -i test-wordpress sh -c 'rm -rf /var/www/html/wp-content'\ndocker exec -u root -i test-wordpress sh -c 'mv /tmp/wp-content/ /var/www/html/wp-content/'\ndocker exec -u root -i test-wordpress sh -c 'chown -R www-data:www-data /var/www/html/wp-content/'\ndocker restart test-wordpress\n```\n\n## Creating backup with wp-content data\n\n```bash\ndocker cp test-wordpress:/var/www/html/wp-content wp-content/\n```\n\n## WP-CLI usage\n\n```bash\n# wp cli version\n\ndocker compose run --rm wordpress-cli \"cli\" \"version\"\n```\n\n## Running as an arbitrary user\n\nSee the \"[Running as an arbitrary user](https://github.com/docker-library/docs/blob/master/php/README.md#running-as-an-arbitrary-user)\" section of the php image documentation⁠.\n\n## Setup nginx as proxy server\n\nYou can find nginx configs for WordPress [here](https://www.digitalocean.com/community/tools/nginx?domains.0.php.wordPressRules=true)\n\n## 📝 License\n\nThis project is licensed under the [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funleftie%2Fwordpress-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funleftie%2Fwordpress-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funleftie%2Fwordpress-compose/lists"}