1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| version: '3' #networks: # fastdfs-net: # external: true networks: fastdfs-net: driver: bridge services: tracker: container_name: tracker image: 192.168.0.79:5000/library/fastdfs-nginx:V6.9.4 command: tracker #network_mode: host networks: - fastdfs-net volumes: - /var/fdfs/tracker:/var/fdfs ports: - 22122:22122 storage0: container_name: storage0 image: 192.168.0.79:5000/library/fastdfs-nginx:V6.9.4 command: storage #network_mode: host networks: - fastdfs-net environment: - TRACKER_SERVER=tracker:22122 volumes: - /var/fdfs/storage0:/var/fdfs ports: - 28080:8080 depends_on: - tracker storage1: container_name: storage1 image: 192.168.0.79:5000/library/fastdfs-nginx:V6.9.4 command: storage #network_mode: host networks: - fastdfs-net environment: - TRACKER_SERVER=tracker:22122 volumes: - /var/fdfs/storage1:/var/fdfs ports: - 28081:8080 depends_on: - tracker
|