blob: e753d1877ab923c63913b45cbecc24185dadfa13 [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
8 docker_influxdb_data_dir: /srv/volumes/influxdb
9 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
22 INFLUXDB_DATA_WAL_DIR: /var/lib/influxdb/wal
23 image: ${_param:docker_influxdb_image}
24 ports:
25 - 15016:8086
26 volumes:
27 - ${influxdb:server:prefix_dir}/etc/influxdb:/etc/influxdb
28 - ${_param:docker_influxdb_data_dir}:/var/lib/influxdb/data
29 - ${influxdb:server:data:wal_dir}:/var/lib/influxdb/wal