Multi Arch to mount S3 Bucket (Amazon & Compatibles) as Filesystem
50K+

Multi Arch to to mount S3 Bucket (Amazon & Compatibles) as Filesystem
Docker image based on s3fs-fuse to mount your S3 Bucket as a Filesystem.
More options and documentation https://github.com/s3fs-fuse/s3fs-fuse
| Env. Variable | Description |
|---|---|
| S3_BUCKET | S3 Bucket Name |
| S3_URL | S3 EndPoint like minio, aws... |
| OPTION | Additional options S3FS-FUSE |
S3 Credentials file must be mount on /root/passwd-s3fs with 600 permissions. Content e.g. minio:minio123
Bucket is mounted inside the container as /data
The container must have --privileged flag.
Command line:
docker run --name=S3FS --privileged --cap-add=ALL \
-v my_passwd-s3fs:/root/passwd-s3fs
-v /your/mountpoint:/data
-e S3_BUCKET="Your Bucket Name" \
-e S3_URL="http://your-url.com" \
-e OPTION="additional options" \
mephistoxol/s3fs:latest
Docker Compose:
version: '3.2'
services:
app:
container_name: S3FS
image: mephistoxol/s3fs:latest
cap_add:
- ALL
privileged: true
restart: unless-stopped
env:
- S3_BUCKET="Your Bucket Name"
- S3_URL="http://your-url.com"
- OPTION="additional options"
volumes:
- my_passwd-s3fs:/root/passwd-s3fs
- /your/mountpoint:/data
# Traefik v1.7 optional
labels:
- traefik.enable: "False"
networks:
- internal-network
Ansible:
docker_container:
name: S3FS
image: mephistoxol/s3fs:latest
capabilities: ALL
privileged: yes
env:
S3_BUCKET: "Your Bucket Name"
S3_URL: "http://your-url.com"
OPTION: "additional options"
volumes:
- my_passwd-s3fs:/root/passwd-s3fs
- /your/mountpoint:/data
restart_policy: unless-stopped
# Traefik v1.7 optional
labels:
ttraefik.enable: "False"
networks:
- name: internal-network
register: result
31-05-2020
- Remove uid and gid from Dockerfile
· You can add them from env. variable $OPTION
21-05-2020
- Initial Release
· Based on Alpine latest
· s3fs-fuse v1.86
Content type
Image
Digest
Size
6.9 MB
Last updated
over 6 years ago
docker pull mephistoxol/s3fs