63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: s3_nginx
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./nginx/certs:/etc/nginx/certs:ro
|
|
- nginx_logs:/var/log/nginx
|
|
depends_on:
|
|
- rustfs
|
|
networks:
|
|
- s3_net
|
|
|
|
rustfs_perm:
|
|
image: alpine:latest
|
|
container_name: rustfs_perm
|
|
volumes:
|
|
- /mnt/logs:/logs
|
|
- /mnt/data:/data
|
|
command: sh -c "chown -R 10001:10001 /data /logs"
|
|
|
|
rustfs:
|
|
image: rustfs/rustfs:latest
|
|
depends_on:
|
|
rustfs_perm:
|
|
condition: service_completed_successfully
|
|
hostname: rustfs
|
|
container_name: rustfs
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /mnt/data:/data
|
|
- /mnt/logs:/logs
|
|
environment:
|
|
- RUSTFS_ACCESS_KEY=${RUSTFS_ACCESS_KEY:-JJg3uFeuKUUrdqq4oefQ8sIp6hnI}
|
|
- RUSTFS_SECRET_KEY=${RUSTFS_SECRET_KEY:-7wPrOd1324t411q7VnuzfNkQXCch4U5qqOHx}
|
|
- RUSTFS_CONSOLE_ENABLE=true
|
|
- RUSTFS_ADDRESS=0.0.0.0:9000
|
|
- RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
|
|
- RUSTFS_OBS_LOGGER_LEVEL=debug
|
|
networks:
|
|
- s3_net
|
|
|
|
dozzle-agent:
|
|
image: amir20/dozzle:latest
|
|
command: agent
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
ports:
|
|
- "7007:7007"
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
s3_net:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
nginx_logs:
|