-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
29 lines (28 loc) · 1014 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: "3.9"
services:
lacuna:
build: .
restart: unless-stopped
environment:
LACUNA_PUBSUB_PROJECT_ID: pubsub
# Configure the pubsub client to use the emulator
# See https://cloud.google.com/pubsub/docs/emulator#env
PUBSUB_EMULATOR_HOST: pubsub:8085
volumes:
- /var/run/docker.sock:/var/run/docker.sock
json-server:
image: codfish/json-server:latest
restart: unless-stopped
ports:
- "8080:80"
labels:
lacuna.enabled: true
lacuna.subscription.test.topic: test
lacuna.subscription.test.endpoint: http://json-server/messages
lacuna.subscription.test.ack-deadline: "30s"
pubsub:
image: gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators
command: gcloud beta emulators pubsub start --host-port=0.0.0.0:8085 --project=pubsub
restart: unless-stopped
ports:
- "8085:8085"