You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
644 B
28 lines
644 B
services:
|
|
seaweedfs:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
command: >
|
|
/usr/bin/weed mini
|
|
-s3.config=/etc/seaweedfs/s3.json
|
|
-s3.externalUrl=http://localhost:9000
|
|
-ip=seaweedfs
|
|
volumes:
|
|
- ./s3.json:/etc/seaweedfs/s3.json:ro
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-sf", "http://seaweedfs:8333/status"]
|
|
interval: 3s
|
|
timeout: 2s
|
|
retries: 20
|
|
start_period: 5s
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "9000:9000"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
depends_on:
|
|
seaweedfs:
|
|
condition: service_healthy
|