-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.2 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
version: "3.6"
services:
app_one:
container_name: "app_one"
build: "./containers/app_one"
ports:
- "8000:8000"
app_two:
container_name: "app_two"
build: "./containers/app_two"
ports:
- "8001:8001"
environment:
DOCKER_NETWORK: push_gateway:9091
prometheus:
container_name: "prometheus"
build: "./containers/prometheus"
ports:
- "9090:9090"
grafana:
container_name: "grafana"
build: "./containers/grafana"
ports:
- "3000:3000"
node_exporter:
container_name: "prometheus_node_exporter"
image: "quay.io/prometheus/node-exporter"
ports:
- "9100:9100"
push_gateway:
container_name: "prometheus_push_gateway"
image: "prom/pushgateway"
ports:
- "9091:9091"
postgres:
container_name: "postgres"
image: postgres:13.3
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: example
postgres_exporter:
container_name: "postgres_exporter"
image: "wrouesnel/postgres_exporter"
ports:
- "9187:9187"
environment:
DATA_SOURCE_NAME: "postgresql://postgres:example@postgres:5432/postgres?sslmode=disable"
depends_on:
- postgres