blob: f9b1f58017a7b5d8b475130638c4b7edf2e15658 [file] [log] [blame]
Simon Pasquier5bfa6052017-07-18 11:28:07 +02001classes:
2- system.influxdb.server.container
3- system.influxdb.server.tmpfs_wal
4- system.telegraf.agent.remote.input.influxdb
5parameters:
6 _param:
7 docker_influxdb_replicas: 1
Simon Pasquier026d9162017-07-26 15:06:14 +02008 docker_influxdb_dir: /srv/volumes/influxdb
Simon Pasquier5bfa6052017-07-18 11:28:07 +02009 docker:
10 client:
11 stack:
12 influxdb:
13 service:
14 server:
15 deploy:
16 replicas: ${_param:docker_influxdb_replicas}
17 restart_policy:
18 condition: any
19 environment:
20 INFLUXDB_CONFIG_PATH: /etc/influxdb/influxdb.conf
21 INFLUXDB_DATA_DIR: /var/lib/influxdb/data
Simon Pasquier026d9162017-07-26 15:06:14 +020022 INFLUXDB_META_DIR: /var/lib/influxdb/meta
23 INFLUXDB_DATA_WAL_DIR: /tmp/wal
Simon Pasquier5bfa6052017-07-18 11:28:07 +020024 image: ${_param:docker_influxdb_image}
25 ports:
26 - 15016:8086
27 volumes:
28 - ${influxdb:server:prefix_dir}/etc/influxdb:/etc/influxdb
Simon Pasquier026d9162017-07-26 15:06:14 +020029 - ${_param:docker_influxdb_dir}:/var/lib/influxdb
30 - ${influxdb:server:data:wal_dir}:/tmp/wal