38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
master:
|
|
image: chrislusf/seaweedfs:${SEAWEEDFS_VERSION:-4.00} # use a remote image
|
|
container_name: ${MASTER_CONTAINER_NAME:-seaweedfs-master}
|
|
volumes:
|
|
- ./master_data:/data
|
|
command: "master -ip=master -ip.bind=0.0.0.0 -metricsPort=9324"
|
|
volume:
|
|
image: chrislusf/seaweedfs:${SEAWEEDFS_VERSION:-4.00} # use a remote image
|
|
container_name: ${VOLUME_CONTAINER_NAME:-seaweedfs-volume}
|
|
volumes:
|
|
- ./volume_data:/data
|
|
command: 'volume -mserver="master:9333" -ip.bind=0.0.0.0 -port=8080 -metricsPort=9325'
|
|
depends_on:
|
|
- master
|
|
filer:
|
|
image: chrislusf/seaweedfs:${SEAWEEDFS_VERSION:-4.00} # use a remote image
|
|
container_name: ${FILER_CONTAINER_NAME:-seaweedfs-filer}
|
|
volumes:
|
|
- ./filer_data:/data
|
|
command: 'filer -master="master:9333" -ip.bind=0.0.0.0 -port=8888 -metricsPort=9326'
|
|
depends_on:
|
|
- master
|
|
- volume
|
|
s3:
|
|
image: chrislusf/seaweedfs:${SEAWEEDFS_VERSION:-4.00} # use a remote image
|
|
container_name: ${S3_CONTAINER_NAME:-seaweedfs-s3}
|
|
ports:
|
|
- ${S3_PORT:-8333}:8333 # 只映射S3服务端口给Spring Boot应用访问
|
|
environment:
|
|
- S3_ACCESS_KEY=${S3_ACCESS_KEY:-seaweedfs}
|
|
- S3_SECRET_KEY=${S3_SECRET_KEY:-seaweedfs}
|
|
command: 's3 -filer="filer:8888" -ip.bind=0.0.0.0 -metricsPort=9327'
|
|
depends_on:
|
|
- filer
|