{"id":23800097,"url":"https://github.com/sobird/my-docker-compose","last_synced_at":"2026-05-03T10:35:57.809Z","repository":{"id":50446152,"uuid":"497519690","full_name":"sobird/my-docker-compose","owner":"sobird","description":"my docker compose","archived":false,"fork":false,"pushed_at":"2025-02-04T08:28:05.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T03:59:08.608Z","etag":null,"topics":["docker","nginx","php","wordpress"],"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/sobird.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-05-29T07:26:07.000Z","updated_at":"2025-02-04T08:28:09.000Z","dependencies_parsed_at":"2024-01-05T09:39:23.618Z","dependency_job_id":"31ed6e8c-862a-4c51-a4bf-b5b535f4cfe0","html_url":"https://github.com/sobird/my-docker-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sobird/my-docker-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobird%2Fmy-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobird%2Fmy-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobird%2Fmy-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobird%2Fmy-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sobird","download_url":"https://codeload.github.com/sobird/my-docker-compose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobird%2Fmy-docker-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32566444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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","nginx","php","wordpress"],"created_at":"2025-01-01T21:34:32.112Z","updated_at":"2026-05-03T10:35:57.791Z","avatar_url":"https://github.com/sobird.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# my-docker-compose\n\n\u003e 通过docker定制本地快速部署服务，目前支持了WordPress、PHP开发环境\n\n## 启动\n```\ndocker-compose up\n```\n\n## WordPress\n\n### 同步媒体文件\n\u003e 同步博客远程媒体文件到本地\n\n```\nrsync -av sobird@sobird.me:/home/web/blog/wp-content/uploads/ wordpress/wp-content/uploads\n```\n\n### 同步主题文件\n\u003e 同步博客远程主题文件到本地\n```\nrsync -av sobird@sobird.me:/home/web/blog/wp-content/themes/junior2011/ wordpress/wp-content/themes/junior2011\n```\n\n### 同步插件文件\n\u003e 同步博客远程插件文件到本地\n```\nrsync -av sobird@sobird.me:/home/web/blog/wp-content/plugins/ wordpress/wp-content/plugins\n```\n\n### 数据库导入/导出\n\n数据导出\n```\nmysqldump -usobird -p wordpress \u003e wordpress.sql\n```\n\n数据导入\n```\nmysql -uroot -p  wordpress \u003e wordpress.sql\n```\n\n## docker 命令\n\n```sh\n# 查询容器信息\ndocker ps\ndocker container ls\n\n# 查询镜像信息\ndocker images\ndocker image ls\n\n# 运行一个容器\ndocker run -d --name myhttpd -p 80:80 httpd\n\n# 进入容器执行交互式操作\ndocker exec -it myhttpd bash\n\n# 查询镜像文件的分层结构\ndocker image history httpd\n\n# 提交镜像修改\ndocker commit myhttpd httpdnew\n\n# 删除镜像\ndocker image rm httpd\n\n# 创建并运行 docker-compose.yml 中编排的容器\ndocker-compose up\n\n# 更新容器\ndocker-compose up -d httpd \n\n# 停止并移除容器，网络，镜像和卷\ndocker-compose down\n\n# 用于构建Docker镜像。它从Dockerfile文件中读取指令，并根据这些指令来构建镜像。\n# Dockerfile是一个文本文件，其中包含了一系列的指令，用于描述如何构建Docker镜像\ndocker build -t httpdNew .\n```\n\n## SQL\n### 替换文章内容，比如内容中的url。\n\n```sql\nUPDATE wp_posts SET post_content=REPLACE(post_content, 'http://localhost/', 'http://sobird.com/');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsobird%2Fmy-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsobird%2Fmy-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsobird%2Fmy-docker-compose/lists"}