docker-compose options
hey 👋
I have a docker-compose that spin up everything, just a bit different from your example
# PubSub
pubsub:
image: google/cloud-sdk:emulators
container_name: pubsub
command: bash -c "gcloud beta emulators pubsub start --project=some-project-id --host-port='0.0.0.0:8085'"
volumes:
- pubsub_data:/opt/data
ports:
- "8085:8085"
networks:
- app-network
- is there a way to specify the port where the PubSub is running in this emulator UI?
- is there a volume I can attach to it and name it? like I did in the
cloud-sdkimage
Hello! I did not know we could use this official image for emulators, very cool I will look into it. Currently I have only used the pubsub emulator image specified in the docker-compose.yml file (root of repo).
You can indeed specify a host and port for the pubsub emulator via the UI. Just click this little gear icon in the top right of navbar:
No current support for volumes, however I may explore adding some use for it to store things like projects/subscriptions/automatic scripts/etc. Currently it stores the project names via cookies on browser.
Thanks for the info :)
I see that you have a PR open to set the host via an ENV, which would be great so that we don't have to set it up all the time :)
I haven't fully tested this UI with the images I wrote above, though I was able to create some subscriptions via this UI without any problem, so I guess it should work fine
Any plans to add this via env?
Have a suggestion in this PR #26