-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.38 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3"
services:
discoverer:
restart: always
image: ghcr.io/dazwilkin/consul-sd-cloudrun:c2e92da1e92d3111e5f154d901c35cccba2cbdf3
container_name: discoverer
command:
- --consul=consul:8500
- --project_ids=...
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/secrets/client_secrets.json
volumes:
- /home/userid/.config/gcloud/application_default_credentials.json:/secrets/client_secrets.json
consul:
restart: always
image: docker.io/consul:1.11.0-beta
container_name: consul
expose:
- "8500" # HTTP API|UI
ports:
- 8500:8500/tcp
- 8600:8600/udp
prometheus:
restart: always
depends_on:
- consul
image: docker.io/prom/prometheus:v2.31.0
container_name: prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --web.enable-lifecycle
volumes:
- ${PWD}/prometheus.yml:/etc/prometheus/prometheus.yml
expose:
- "9090"
ports:
- 9090:9090
cadvisor:
restart: always
image: gcr.io/google-containers/cadvisor:v0.36.0
container_name: cadvisor
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:rw"
- "/sys:/sys:ro"
# Default location
# - "/var/lib/docker/:/var/lib/docker:ro"
# Snap location
- "/var/snap/docker/current:/var/lib/docker:ro"
expose:
- "8080"
ports:
- 8089:8080