forked from mozilla/blurts-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.06 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
postgres:
image: postgres:latest
ports:
- "5432:5432"
volumes:
- "./.docker/postgres:/docker-entrypoint-initdb.d:delegated,z"
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
PGUSER: postgres
POSTGRES_DB: postgres
command: ["-c", "log_statement=all"]
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
start_period: 80s
networks:
- shared
pubsub:
image: google/cloud-sdk:529.0.0
platform: linux/amd64
entrypoint: ["/bin/bash", "-c"]
command:
- |
/pubsub-init/setup_pubsub.sh ${PUBSUB_HOST} ${PUBSUB_PORT} ${GCP_PUBSUB_PROJECT_ID}
ports:
- "${PUBSUB_PORT}:${PUBSUB_PORT}"
volumes:
- "./.docker/pubsub:/pubsub-init:delegated,z"
healthcheck:
test: ["CMD-SHELL", "test -f /tmp/startup.done"]
interval: 15s
timeout: 10s
retries: 20
start_period: 30s
start_interval: 10s
networks:
- shared
networks:
shared:
name: shared