From 3c5a24855920ac48bcbce10b13293c39c32133b4 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sun, 19 Mar 2023 12:22:30 +0100 Subject: [PATCH] turned base into influxdb deployment --- LICENSE | 2 +- docker-compose.yml | 9 ++++++++- env.example | 12 ++++++++---- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index fe6f694..614f30c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Bryan Joshua Pedini +Copyright (c) 2023 Bryan Joshua Pedini Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docker-compose.yml b/docker-compose.yml index cf8e041..1b4014c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,8 @@ --- services: - app: + influxdb: + image: influxdb:${INFLUX_VERSION} + command: --reporting-disabled restart: unless-stopped labels: ### Section Træfik @@ -29,6 +31,11 @@ services: - diun.exclude_tags=${DIUN_EXCLUDE} networks: - traefik + volumes: + - ${INFLUX_DATA}/data:/var/lib/influxdb2 + #- ${INFLUX_DATA}/config/config.yml:/etc/influxdb2/config.yml + ports: + - 8086:8086 networks: traefik: diff --git a/env.example b/env.example index 263f7aa..74f1f2d 100644 --- a/env.example +++ b/env.example @@ -1,10 +1,10 @@ # Træfik TRAEFIK_ENABLED=true TRAEFIK_NETWORK=traefik -TRAEFIK_ROUTER=app_example_com -TRAEFIK_SERVICE=app_example_com -TRAEFIK_SERVICE_PORT=80 -TRAEFIK_MATCHRULE=Host(`app.example.com`) +TRAEFIK_ROUTER=influx_example_com +TRAEFIK_SERVICE=influx_example_com +TRAEFIK_SERVICE_PORT=8086 +TRAEFIK_MATCHRULE=Host(`influx.example.com`) TRAEFIK_TLSENABLED=true TRAEFIK_CERTRESOLVER=letsencrypt TRAEFIK_HTTP_MIDDLEWARES=http-to-https @@ -16,3 +16,7 @@ DIUN_WATCHREPO=true DIUN_SORTALGO=semver DIUN_INCLUDE= DIUN_EXCLUDE= + +# InfluxDB +INFLUX_VERSION=2.6.1-alpine +INFLUX_DATA=./data/influxdb