swarm
This commit is contained in:
@ -1,46 +1,28 @@
|
||||
version: '3'
|
||||
services:
|
||||
tracker:
|
||||
image: season/fastdfs:1.2
|
||||
container_name: tracker
|
||||
image: ygqygq2/fastdfs-nginx:latest
|
||||
command: tracker
|
||||
network_mode: host
|
||||
restart: always
|
||||
volumes:
|
||||
- "./tracker_data:/fastdfs/tracker/data"
|
||||
# ports:
|
||||
# - "22122:22122"
|
||||
command: "tracker"
|
||||
|
||||
storage:
|
||||
image: season/fastdfs:1.2
|
||||
container_name: storage
|
||||
- /data/tracker:/var/fdfs
|
||||
ports:
|
||||
- 22122:22122
|
||||
storage0:
|
||||
container_name: storage0
|
||||
image: ygqygq2/fastdfs-nginx:latest
|
||||
command: storage
|
||||
network_mode: host
|
||||
# links:
|
||||
# - tracker
|
||||
restart: always
|
||||
volumes:
|
||||
- "./storage.conf:/fdfs_conf/storage.conf"
|
||||
- "./storage_base_path:/fastdfs/storage/data"
|
||||
- "./store_path0:/fastdfs/store_path"
|
||||
#ports:
|
||||
# - "23000:23000"
|
||||
extra_hosts:
|
||||
- "tracker:192.168.1.204"
|
||||
environment:
|
||||
TRACKER_SERVER: "192.168.1.206:22122"
|
||||
command: "storage"
|
||||
|
||||
nginx:
|
||||
image: season/fastdfs:1.2
|
||||
container_name: fdfs-nginx
|
||||
network_mode: host
|
||||
restart: always
|
||||
- TRACKER_SERVER=tracker:22122
|
||||
volumes:
|
||||
- "./nginx.conf:/etc/nginx/conf/nginx.conf"
|
||||
- "./store_path0:/fastdfs/store_path"
|
||||
# links:
|
||||
# - tracker
|
||||
# ports:
|
||||
# - "8088:8088"
|
||||
environment:
|
||||
TRACKER_SERVER: "192.168.1.206:22122"
|
||||
command: "nginx"
|
||||
- ./data/storage0:/var/fdfs
|
||||
- 8080:8080
|
||||
depends_on:
|
||||
- tracker
|
||||
|
||||
|
||||
## https://github.com/ygqygq2/fastdfs-nginx
|
Reference in New Issue
Block a user