🔧 Mount configuration for influxdb from data dir
This commit is contained in:
parent
5b327382fc
commit
039e64040c
1 changed files with 3 additions and 2 deletions
|
@ -259,6 +259,8 @@
|
|||
state: directory
|
||||
with_items:
|
||||
- "{{ data_dir }}/influxdb"
|
||||
- "{{ data_dir }}/influxdb/data"
|
||||
- "{{ data_dir }}/influxdb/cfg"
|
||||
|
||||
- name: Ensure container for influxdb is running
|
||||
docker_container:
|
||||
|
@ -278,8 +280,7 @@
|
|||
DOCKER_INFLUXDB_INIT_BUCKET: default
|
||||
volumes:
|
||||
- "{{ data_dir }}/influxdb/data:/var/lib/influxdb2"
|
||||
tags:
|
||||
- dev
|
||||
- "{{ data_dir }}/influxdb/cfg:/etc/influxdb2"
|
||||
|
||||
- name: Setup proxy site {{ influxdb_domain_name }}
|
||||
include_role:
|
||||
|
|
Loading…
Reference in a new issue