Skip to content
/ s3fs Public

AWS S3 client, Object Storage client , MinIO Object Storage client

License

Notifications You must be signed in to change notification settings

jkaninda/s3fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3fs

🐳 AWS S3 client, Object Storage client

Build Go Report Docker Image Size (latest by date) Docker Pulls

Path:

AWS S3 Storage mounting path: /s3mnt

Supported

  • AWS S3
  • MinIO
  • And all AWS S3 alternative object storage solution

Simple docker compose usage:

version: '3.7'
services:
 s3fs:
  container_name: s3fs
  image: jkaninda/s3fs
  privileged: true
  devices:
    - "/dev/fuse"
  environment:
   - ACCESS_KEY=${ACCESS_KEY}
   - SECRET_KEY=${SECRET_KEY}
   - BUCKET_NAME=${BUCKET_NAME}
   - S3_ENDPOINT=${S3_ENDPOINT}

Copy a file to S3

This is a simple example of copying a file from your local storage to S3, and after the copy container will stop running. To keep the container running you need add --keep flag.

s3fsc mount --keep

version: '3.7'
services:
 s3fs:
  container_name: s3fs
  image: jkaninda/s3fs
  privileged: true
  volumes:
    - ./backup/:/backup
  devices:
    - "/dev/fuse"
    ## Mount S3 Storage and copy a file
  command:
   - /bin/sh
   - -c
   - |
     s3fsc mount 
    cp /backup/my_file.gz /s3mnt/my_file.gz 
  environment:
   - ACCESS_KEY=${ACCESS_KEY}
   - SECRET_KEY=${SECRET_KEY}
   - BUCKET_NAME=${BUCKET_NAME}
   - S3_ENDPOINT=${S3_ENDPOINT}

P.S. please give a star if you like it 😉

About

AWS S3 client, Object Storage client , MinIO Object Storage client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published