Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose options #25

Open
LegendSebastianoL opened this issue Dec 26, 2024 · 2 comments
Open

docker-compose options #25

LegendSebastianoL opened this issue Dec 26, 2024 · 2 comments

Comments

@LegendSebastianoL
Copy link

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-sdk image
@NeoScript
Copy link
Owner

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:
image

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.

@LegendSebastianoL
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants