This repository contains a Docker setup to mount an S3 bucket using mount-s3
.
- Docker
- Docker Compose
-
Clone this repository:
git clone <repository-url> cd s3fs-docker
-
Create and edit the
stack.env
file with your AWS credentials and configuration:cp stack.env.example stack.env
Update the
stack.env
file with your AWS details:AWS_ENDPOINT_URL=<your-aws-or-compatible-endpoint-url> # Optional AWS_ACCESS_KEY_ID=<your-aws-access-key-id> AWS_SECRET_ACCESS_KEY=<your-aws-secret-access-key> AWS_REGION=<your-aws-region> S3_BUCKET=<your-aws-bucket> LOCAL_PATH=<your-local-path>
-
Build and start the Docker container:
docker-compose up --build -d
-
The S3 bucket will be mounted to the local path specified in the
stack.env
file.
To stop the container, run:
docker-compose down