23 lines
634 B
YAML
23 lines
634 B
YAML
services:
|
|
spanner:
|
|
image: gcr.io/cloud-spanner-emulator/emulator:latest
|
|
container_name: spanner-emulator
|
|
ports:
|
|
- "9010:9010" # gRPC
|
|
- "9020:9020" # REST
|
|
|
|
spanner-init:
|
|
image: google/cloud-sdk:slim
|
|
container_name: spanner-init
|
|
depends_on:
|
|
- spanner
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
# Tell gcloud/client libs to talk to the emulator inside the network
|
|
- SPANNER_EMULATOR_HOST=spanner:9010
|
|
volumes:
|
|
- ./scripts/spanner-init.sh:/work/spanner-init.sh:ro
|
|
- ./ddl:/work/ddl:ro
|
|
working_dir: /work
|
|
entrypoint: [ "bash", "/work/spanner-init.sh" ] |