Sign inSign up

antonmry/docker-s3-sync

By antonmry

Updated over 7 years ago

Very simple image to sync volumes and S3 buckets

Image
0

1.0K

antonmry/docker-s3-sync repository overview

docker-s3-sync

Very simple image to sync volumes and S3 buckets.

Expected Environment Variables

  1. ACCESS_KEY - AWS Access Key
  2. SECRET_KEY - AWS Secret Access Key
  3. SOURCE_PATH - Source files to be synced, example: /var/www/uploads
  4. DESTINATION_PATH - Destination of where to sync files to, example: s3://my-bucket/site-uploads
  5. BUCKET_LOCATION - AWS Region for bucket, ex: eu-west-1

Docker-compose

Edit docker-compose.yml with your configuration and execute:

docker-compose up

Kubernetes

Edit kubernetes.yml with your configuration and execute:

kubectl apply -f kubernetes.yml

You could use CronJobs to execute it periodically.

Docker Hub

Image available at Docker Hub

Tag summary

Content type

Image

Digest

Size

33.6 MB

Last updated

over 7 years ago

docker pull antonmry/docker-s3-sync