{"id":18326534,"url":"https://github.com/luisenmarroquin/docker-compose-wordpress","last_synced_at":"2026-04-03T23:38:33.167Z","repository":{"id":130646964,"uuid":"295888075","full_name":"LuisEnMarroquin/docker-compose-wordpress","owner":"LuisEnMarroquin","description":"Deploy easily Nginx, Let's Encrypt gen, mySQL, phpMyAdmin and WordPress  ","archived":false,"fork":false,"pushed_at":"2020-09-19T00:33:53.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-15T09:46:08.219Z","etag":null,"topics":["certbot","compose","containers","docker","docker-compose","docker-image","https-proxy","letsencrypt","letsencrypt-certificates","mysql","nginx","nginx-proxy","phpmyadmin","shell-script","ssl-certificates","website","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuisEnMarroquin.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":"2020-09-16T01:10:39.000Z","updated_at":"2021-02-13T01:12:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"c33fab82-0823-4aa2-9acb-88aae4617037","html_url":"https://github.com/LuisEnMarroquin/docker-compose-wordpress","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fdocker-compose-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fdocker-compose-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fdocker-compose-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fdocker-compose-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuisEnMarroquin","download_url":"https://codeload.github.com/LuisEnMarroquin/docker-compose-wordpress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248066345,"owners_count":21042091,"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":["certbot","compose","containers","docker","docker-compose","docker-image","https-proxy","letsencrypt","letsencrypt-certificates","mysql","nginx","nginx-proxy","phpmyadmin","shell-script","ssl-certificates","website","wordpress"],"created_at":"2024-11-05T19:07:12.438Z","updated_at":"2025-12-30T20:22:55.567Z","avatar_url":"https://github.com/LuisEnMarroquin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Compose WordPress\n\nDeploy self hosted WordPress using Docker easier than ever\n\n## Requirements\n\nAt first a machine with inbound and outbound ports `HTTP (80)` and `HTTPS (443)` enabled.\n\nYou need to point your domain to your web server and wait some time for changes to propagate.\nOften the time to wait is only a few hours but on occasions it can take as long as 48 hours\n\nHere is my example of domain pointing\n\n| Name                 | Type | TTL | IP address    |\n|----------------------|------|-----|---------------|\n| db.luismarroquin.com | A    | 1hr | 40.77.100.215 |\n| wp.luismarroquin.com | A    | 1hr | 40.77.100.215 |\n\n## Deploy services\n\n1. Install the following command line tools\n\n* [Docker Engine](https://docs.docker.com/engine/install)\n* [Docker Compose](https://docs.docker.com/compose/install)\n\nIf you are using **Ubuntu Server** you could use this commands\n\n```shell\n# Download Docker convenience script\ncurl -fsSL https://get.docker.com -o get-docker.sh\n\n# Execute the script\nsudo sh get-docker.sh\n\n# Add your user to the Docker group\nsudo usermod -aG docker $USER\n\n# Refresh Docker group changes\nnewgrp docker\n\n# Test that Docker is working\ndocker run hello-world\n\n# Download Docker Compose\nsudo curl -L \"https://github.com/docker/compose/releases/download/1.27.3/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose\n\n# Apply executable permissions to Compose\nsudo chmod +x /usr/local/bin/docker-compose\n\n# Test Compose installation\ndocker-compose --version\n\n# Update the package lists\nsudo apt update -y\n\n# Install the latest versions of all packages\nsudo apt upgrade -y\n\n# Remove previously required packages\nsudo apt autoremove -y\n\n# Reboot is recommended\nsudo reboot\n```\n\n2. Get this repo code and move to folder\n\n```shell\ngit clone --depth 1 https://github.com/LuisEnMarroquin/docker-compose-wordpress.git\ncd docker-compose-wordpress\n```\n\n3. Create `.env` file with your information\n\nHere is an example\n\n```env\nWP_USER=luis\nWP_PASS=secretPassword\nWP_DATABASE=myDatabase\nWP_ROOTUSER=anotherPassword\nURL_WP=wp.luismarroquin.com\nURL_DB=db.luismarroquin.com\nCERT_EMAIL=me@marroquin.dev\n```\n\nThis file can also be created sending all arguments positionally as follows\n\n```shell\nsh dotenv.sh luis secretPassword myDatabase anotherPassword wp.luismarroquin.com db.luismarroquin.com me@marroquin.dev\n```\n\n4. Run the following commands\n\n```shell\ndocker-compose -f compose.yml pull\ndocker-compose -f compose.yml --project-name main up -d --remove-orphans\n```\n\n## Remove services\n\n```shell\n# Stop services\ndocker stop service_phpmyadmin service_wordpress service_mysql proxy_letsencrypt proxy_nginx\n\n# Remove unused containers, networks and volumes\ndocker system prune --volumes\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisenmarroquin%2Fdocker-compose-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisenmarroquin%2Fdocker-compose-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisenmarroquin%2Fdocker-compose-wordpress/lists"}