added docker example

This commit is contained in:
beyondszine 2019-08-17 12:06:58 +05:30
parent a09bcf3bf0
commit 2de194fcf8

View file

@ -203,6 +203,12 @@ For easy deployment, we've created a Docker container.
```bash ```bash
docker run --publish 8080:8080 dutchcoders/transfer.sh:latest --provider local --basedir /tmp/ docker run --publish 8080:8080 dutchcoders/transfer.sh:latest --provider local --basedir /tmp/
``` ```
Pass the params to the transfer.sh binary inside container by the *args*, not through docker environment vars.
```bash
docker run -p 8080:8080 dutchcoders/transfer.sh:latest --provider s3 --http-auth-user my-username --http-auth-pass somepassword --aws-access-key $AWS_ACCESS_KEY_ID --aws-secret-key $AWS_SECRET_ACCESS_KEY --bucket $AWS_TRANSFERSH_BUCKET --s3-region $AWS_TRANSFERSH_BUCKET_REGION
```
## S3 Usage ## S3 Usage