Simon Pasquier | 5bfa605 | 2017-07-18 11:28:07 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - system.influxdb.server.container |
| 3 | - system.influxdb.server.tmpfs_wal |
| 4 | - system.telegraf.agent.remote.input.influxdb |
| 5 | parameters: |
| 6 | _param: |
| 7 | docker_influxdb_replicas: 1 |
Simon Pasquier | 026d916 | 2017-07-26 15:06:14 +0200 | [diff] [blame] | 8 | docker_influxdb_dir: /srv/volumes/influxdb |
Simon Pasquier | 5bfa605 | 2017-07-18 11:28:07 +0200 | [diff] [blame] | 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 |
Simon Pasquier | 026d916 | 2017-07-26 15:06:14 +0200 | [diff] [blame] | 22 | INFLUXDB_META_DIR: /var/lib/influxdb/meta |
| 23 | INFLUXDB_DATA_WAL_DIR: /tmp/wal |
Simon Pasquier | 5bfa605 | 2017-07-18 11:28:07 +0200 | [diff] [blame] | 24 | image: ${_param:docker_influxdb_image} |
| 25 | ports: |
| 26 | - 15016:8086 |
| 27 | volumes: |
| 28 | - ${influxdb:server:prefix_dir}/etc/influxdb:/etc/influxdb |
Simon Pasquier | 026d916 | 2017-07-26 15:06:14 +0200 | [diff] [blame] | 29 | - ${_param:docker_influxdb_dir}:/var/lib/influxdb |
| 30 | - ${influxdb:server:data:wal_dir}:/tmp/wal |