Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (18 sloc) 509 Bytes
version: '3'
services:
server:
image: golang:1.11
restart: on-failure
depends_on:
- googlecloud
volumes:
- .:/app
environment:
# use local emulator instead of google cloud engine
PUBSUB_EMULATOR_HOST: "googlecloud:8085"
working_dir: /app
command: go run main.go
googlecloud:
image: google/cloud-sdk:228.0.0
entrypoint: gcloud --quiet beta emulators pubsub start --host-port=googlecloud:8085 --verbosity=debug --log-http
restart: on-failure