Sign inSign up

mephistoxol/s3fs

By mephistoxol

•Updated over 6 years ago

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

Image
1

50K+

mephistoxol/s3fs repository overview

Docker-s3fs

⁠Docker-S3FS

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

Docker Pulls Docker Image Version (tag latest semver) Docker Image Size (tag) Docker Stars Paypal

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⁠

⁠Environment Variables

Env. VariableDescription
S3_BUCKETS3 Bucket Name
S3_URLS3 EndPoint like minio, aws...
OPTIONAdditional options S3FS-FUSE

⁠Install

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

⁠Changelog

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 

⁠Donate

Paypal

Tag summary

Content type

Image

Digest

Size

6.9 MB

Last updated

over 6 years ago

docker pull mephistoxol/s3fs