{"id":18743306,"url":"https://github.com/rimiti/wordpress-dockerized-environment","last_synced_at":"2025-04-12T21:32:17.045Z","repository":{"id":89493085,"uuid":"114767880","full_name":"rimiti/wordpress-dockerized-environment","owner":"rimiti","description":"Wordpress Dockerized Environment.","archived":false,"fork":false,"pushed_at":"2018-06-23T09:09:04.000Z","size":5,"stargazers_count":10,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T15:48:13.048Z","etag":null,"topics":["containers","development","docker","docker-compose","mysql","wordpress","wordpress-plugin","wordpress-theme"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rimiti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-12-19T13:23:45.000Z","updated_at":"2023-11-17T08:15:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"05bba6cb-29e5-4b5b-84f1-275c1d5d7104","html_url":"https://github.com/rimiti/wordpress-dockerized-environment","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/rimiti%2Fwordpress-dockerized-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fwordpress-dockerized-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fwordpress-dockerized-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fwordpress-dockerized-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rimiti","download_url":"https://codeload.github.com/rimiti/wordpress-dockerized-environment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248635983,"owners_count":21137348,"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":["containers","development","docker","docker-compose","mysql","wordpress","wordpress-plugin","wordpress-theme"],"created_at":"2024-11-07T16:10:59.643Z","updated_at":"2025-04-12T21:32:17.039Z","avatar_url":"https://github.com/rimiti.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordpress Dockerized Environment\n[![PRs Welcome][prs-badge]][prs]\n\nThis repository aims to simplify the setting up of a docker-compose development environment.\n\n## Pre-requirements\nFirst, make sure you have the latest versions of **Docker** and **Docker Compose** installed on your machine.\n- [Docker](https://docs.docker.com/engine/installation/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n\n## From a new project\n\n- [Download](https://wordpress.org/latest.zip) latest WordPress version.\n- Unzip `wordpress-x.x.x.zip` archive.\n- Move all files present in the unzipped folder to `src/`\n- Run `docker-compose up`.\n\n## From an existing project\n- Move all your files to `src/`.\n- Copy the SQL dump file to `docker/dump/`.\n- Update database credentials in `docker-compose.yml` with your own values.\n- Run `docker-compose up`.\n\n## Ready\n\nThere are two ways to access to your local WordPress:\n\n```\n# Directly from your local machine IP.\nhttp://127.0.0.1:80\n\n# From a local domain (cf: Utils/WordPress section), add below line in your /etc/hosts file.\n127.0.0.1 wordpress.local\n``` \n\n### Docker Compose\n\n```\n# To start/restart your containers\n$ docker-compose up\n\n# To start/restart your containers in background\n$ docker-compose up -d\n\n# To stop all containers\n$ docker-compose stop\n\n# To stop and remove all containers\n$ sudo docker-compose down\n\n# To remove all stoped containers\n$ docker-compose rm --all\n\n# To connect you into wordpress container\n$ docker-compose exec wordpress /bin/bash\n\n# To connect you into mysql container\n$ docker-compose exec mydb.mysql.db /bin/bash\n```\n\n### WordPress\n\nTo override the hostname without changing any data in your database add in your **wp-config.php** the below lines:\n```\ndefine('WP_HOME','http://wordpress.local');\ndefine('WP_SITEURL','http://wordpress.local');\n```\n\n### Scripts\n```\n# To dump MySQL \n$ bash utils/dump.sh\n```\n\n\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimiti%2Fwordpress-dockerized-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimiti%2Fwordpress-dockerized-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimiti%2Fwordpress-dockerized-environment/lists"}