Created
October 14, 2017 16:26
-
-
Save hharnisc/288ed3bba476723f46dffaf6c55b4b4f to your computer and use it in GitHub Desktop.
Running a local S3 bucket on http://s3.local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use "docker-compose up" to start the local s3 bucket (ctrl c to stop all services) | |
version: "2" | |
services: | |
s3: | |
image: deppy/fake-s3 | |
ports: | |
- "80:4569" | |
expose: | |
- "80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# append this line to /etc/hosts file (might need to sudo) | |
127.0.0.1 s3.local |
Well, what I was trying to use is the --add-host option, but that didn't work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docker Compose CLI docs: https://docs.docker.com/compose/reference/