mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #1952] Access from inside docker network and externally #231
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @glenn-smith-0 on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1952
Hey, we have been using this emulator and been really happy with it so far. We have encountered an issue that we hope can be resolved, it's most likely a misconfiguration on our side but would appreciate some advice.
We have a go app that accesses a bucket in gcs to download resources. We want to replicate this in our local env. Currently we are able to do this within docker compose (both the go service and the fake-gcs-server in the same network, along with other services).
We would like to be able to keep this working but also have the go service be able to be run independently of the docker network and still be able to access the fake-gcs-server, to enable work on the go service independently without having to start it in the docker network each time.
this is our current compose file set up
here is a simplified snippet of the code to show the values were are using when running externally
the main difference being within docker network it works using
we have preloaded a file tester.txt in bucket
my_bucket', I can see it when we list the bucket content, but when i attempt to download, the error isfailed to create reader: storage: object doesn't exist`Is there some config i can do to preserve the behaviour of downloads from within docker working whilst allowing downloads from an app running external to the network?
Thanks
@glenn-smith-0 commented on GitHub (Apr 9, 2025):
Just discovered that doing this resolved my issue