From c641eda6f6ad8450c80778a033a35a446e057a9b Mon Sep 17 00:00:00 2001 From: agp8x Date: Thu, 2 Aug 2018 15:42:52 +0200 Subject: [PATCH] refactor snapshotter config --- snapshotter/.gitignore | 3 +++ snapshotter/docker-compose.yml | 8 +------- snapshotter/env.sample | 8 ++++++++ 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 snapshotter/.gitignore create mode 100644 snapshotter/env.sample diff --git a/snapshotter/.gitignore b/snapshotter/.gitignore new file mode 100644 index 0000000..c875575 --- /dev/null +++ b/snapshotter/.gitignore @@ -0,0 +1,3 @@ +*.pyc +data/ +env diff --git a/snapshotter/docker-compose.yml b/snapshotter/docker-compose.yml index ef6f199..31a588d 100644 --- a/snapshotter/docker-compose.yml +++ b/snapshotter/docker-compose.yml @@ -5,12 +5,6 @@ services: volumes: - ./src/:/app - ./data:/data - environment: - - "USER=viewer" - - "PASSWORD=viewer" - - "SSH_USER=…" - - "SSH_PASSWORD=…" - - "SSH_HOST=…" - - "PYTHONUNBUFFERED=1" + env_file: env working_dir: /app command: python3 scheduler.py \ No newline at end of file diff --git a/snapshotter/env.sample b/snapshotter/env.sample new file mode 100644 index 0000000..75d0bcf --- /dev/null +++ b/snapshotter/env.sample @@ -0,0 +1,8 @@ +USER=grafana_user +PASSWORD=grafana_password + +SSH_USER=ssh_user +SSH_PASSWORD=ssh_pass +SSH_HOST=ssh_target + +PYTHONUNBUFFERED=1 \ No newline at end of file