-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
81 lines (75 loc) · 2.09 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3.9" # optional since v1.27.0
networks:
metrics:
external: false
volumes:
influxdb2config:
influxdb2data:
services:
webapi:
build:
context: .
dockerfile: ./src/WebAPI/Dockerfile
container_name: poc_artillery_webapi
restart: always
ports:
- 5000:80
influxdb2:
image: influxdb:2.0
container_name: poc_artillery_influx_db_2
restart: always
environment:
# mandatory for automatic setup
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=password
- DOCKER_INFLUXDB_INIT_ORG=poc-organization
- DOCKER_INFLUXDB_INIT_BUCKET=poc-artillery.io
# optional
- DOCKER_INFLUXDB_INIT_RETENTION=1w # 1 week
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token
networks:
- metrics
ports:
- 8086:8086
volumes:
- type: volume # config
source: influxdb2config
target: /etc/influxdb2
- type: volume # data
source: influxdb2data
target: /var/lib/influxdb2
telegraf:
image: telegraf:1.18
container_name: poc_artillery_telegraf
depends_on:
- influxdb2
restart: always
environment:
- INFLUX_DB2_HOST_ADDRESS=influxdb2 # name of InfluxDB container inside a Docker network (metrics)
- INFLUX_DB2_TOKEN=my-super-secret-auth-token # do not use admin token for other than demo purposes
- INFLUX_DB2_ORGANIZATION=poc-organization # destination organization
- INFLUX_DB2_BUCKET=poc-artillery.io # destination bucket
networks:
- metrics
ports:
- 8092:8092/udp
- 8094:8094/tcp
- 8125:8125/udp
volumes:
- type: bind # Telegraf configuration file
source: ./docker/telegraf/telegraf.conf
target: /etc/telegraf/telegraf.conf
grafana:
image: grafana/grafana:7.5.5
container_name: poc_artillery_grafana
depends_on:
- influxdb2
- telegraf
restart: always
# environment:
networks:
- metrics
ports:
- 3000:3000/tcp
# volumes: