-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (74 loc) · 2.4 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
version: "3.9"
services:
influxdb:
container_name: wf-influxdb
image: influxdb:latest
ports:
- '8086:8086'
volumes:
- ./cache/influx:/var/lib/influxdb
- ./cache/influx/temp/influxdbv2:/var/lib/influxdb2:rw
postgres:
container_name: wf-postgres
image: postgres:9.6.24
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5438:5432'
volumes:
- ./cache/postgres:/var/lib/postgresql/data
# environment:
# - DOCKER_INFLUXDB_INIT_USERNAME=username
# - DOCKER_INFLUXDB_INIT_PASSWORD=password
# - DOCKER_INFLUXDB_INIT_ORG=kayo
# - INFLUXDB_DB=kayo
# - INFLUXDB_ADMIN_USER=username
# - INFLUXDB_ADMIN_PASSWORD=password
# - DOCKER_INFLUXDB_INIT_BUCKET=kayo
# Use the influx cli to set up an influxdb instance.
# influxdb_cli:
# links:
# - influxdb
# image: influxdb:latest
# volumes:
# # Mount for influxdb data directory and configuration
# - ./cache/influx/temp/influxdbv2:/var/lib/influxdb2:rw
# - ./ssl/influxdb-selfsigned.crt:/etc/ssl/influxdb-selfsigned.crt:rw
# - ./ssl/influxdb-selfsigned.key:/etc/ssl/influxdb-selfsigned.key:rw
# environment:
# # Use these same configurations parameters in your telegraf configuration, mytelegraf.conf.
# - DOCKER_INFLUXDB_INIT_MODE=setup
# - DOCKER_INFLUXDB_INIT_USERNAME=username
# - DOCKER_INFLUXDB_INIT_PASSWORD=password
# - DOCKER_INFLUXDB_INIT_ORG=kayo
# - DOCKER_INFLUXDB_INIT_BUCKET=kayo
# - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=mytoken
# - INFLUXD_TLS_CERT=/etc/ssl/influxdb-selfsigned.crt
# - INFLUXD_TLS_KEY=/etc/ssl/influxdb-selfsigned.key
# entrypoint: [ "./entrypoint.sh" ]
# depends_on:
# - influxdb
# telegraf:
# image: telegraf
# links:
# - influxdb
# volumes:
# # Mount for telegraf config
# - ./telegraf/mytelegraf.conf:/etc/telegraf/telegraf.conf
# # env_file:
# # - ./influxv2.env
# environment:
# - DOCKER_INFLUXDB_INIT_MODE=setup
# - DOCKER_INFLUXDB_INIT_USERNAME=username
# - DOCKER_INFLUXDB_INIT_PASSWORD=password
# - DOCKER_INFLUXDB_INIT_ORG=kayo
# - DOCKER_INFLUXDB_INIT_BUCKET=kayo
# - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=mytoken
# depends_on:
# - influxdb_cli