{"id":15777817,"url":"https://github.com/v5tech/springboot-fastdfs-example","last_synced_at":"2025-03-31T15:38:53.898Z","repository":{"id":149461816,"uuid":"261630922","full_name":"v5tech/springboot-fastdfs-example","owner":"v5tech","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-06T02:21:21.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-11T18:07:07.644Z","etag":null,"topics":["docker-for-mac","fastdfs"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/v5tech.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}},"created_at":"2020-05-06T02:19:44.000Z","updated_at":"2020-05-06T02:23:25.000Z","dependencies_parsed_at":"2023-04-19T03:16:50.938Z","dependency_job_id":null,"html_url":"https://github.com/v5tech/springboot-fastdfs-example","commit_stats":null,"previous_names":["v5tech/springboot-fastdfs-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v5tech%2Fspringboot-fastdfs-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v5tech%2Fspringboot-fastdfs-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v5tech%2Fspringboot-fastdfs-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v5tech%2Fspringboot-fastdfs-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v5tech","download_url":"https://codeload.github.com/v5tech/springboot-fastdfs-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246490889,"owners_count":20786076,"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":["docker-for-mac","fastdfs"],"created_at":"2024-10-04T18:00:59.009Z","updated_at":"2025-03-31T15:38:53.872Z","avatar_url":"https://github.com/v5tech.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# springboot-fastdfs-example\n\ndocker for mac 环境下定制化docker-compose.yml\n\ndocker-compose.yml\n```yaml\nversion: '3.6'\n\nservices:\n  tracker:\n    container_name: tracker\n    image: ygqygq2/fastdfs-nginx:latest\n    command: tracker\n    restart: always\n    networks:\n      fdfs-net:\n        ipv4_address: 172.24.0.2 # 设置tracker服务器固定 ip，该 ip 必须在下文创建的网络的网段范围之内\n    volumes:\n      - ./fdfs/tracker:/var/fdfs\n  \n  storage:\n    container_name: storage\n    image: ygqygq2/fastdfs-nginx:latest\n    command: storage\n    restart: always\n    depends_on:\n      - tracker\n    networks:\n      fdfs-net:\n        ipv4_address: 172.24.0.3 # 设置storage服务器固定 ip，该 ip 必须在下文创建的网络的网段范围之内\n    environment:\n      - TRACKER_SERVER=172.24.0.2:22122 # 设置tracker服务器地址和端口\n    volumes:\n      - ./fdfs/storage:/var/fdfs\n\n# 重新定义网络\nnetworks:\n  fdfs-net:\n    name: fdfs-net # 自定义网络名称\n    driver: bridge\n    ipam:\n      driver: default\n      config:\n        - subnet: 172.24.0.0/24 # 定义网段\n```\n\n配合 https://github.com/ameizi/docker-mac-network 更香噢，docker for mac专属定制。解决宿主机不能访问容器的痛点。\n\n注意：\n\n```\n容器内访问宿主机，在 Docker 18.03 过后推荐使用 特殊的 DNS 记录 host.docker.internal 访问宿主机。\n但是注意，这个只是在 Docker Desktop for Mac 中作为开发时有效。 \n网关的 DNS 记录: gateway.docker.internal。\n```\n\n# 参考文档\n\n使用的 docker 镜像\n\nhttps://github.com/ygqygq2/fastdfs-nginx\n\ndocker for mac 宿主机和容器通信方案\n\nhttps://github.com/wojas/docker-mac-network\n\nhttps://github.com/pengsrc/docker-for-mac-kubernetes-devkit\n\nhttps://yuanmomo.net/2019/06/13/docker-network\n\nhttps://my.oschina.net/binny/blog/3062250\n\nhttps://pjw.io/articles/2018/04/25/access-to-the-container-network-of-docker-for-mac\n\ndocker compose文档\n\nhttps://docs.docker.com/compose/compose-file/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv5tech%2Fspringboot-fastdfs-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv5tech%2Fspringboot-fastdfs-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv5tech%2Fspringboot-fastdfs-example/lists"}