From 9eeb7e7638123909e9fa2960c42e0e54e39ea5d8 Mon Sep 17 00:00:00 2001 From: dex Date: Tue, 24 Oct 2023 04:29:55 +0000 Subject: [PATCH] Add databases.yaml --- databases.yaml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 databases.yaml diff --git a/databases.yaml b/databases.yaml new file mode 100644 index 0000000..bf3f769 --- /dev/null +++ b/databases.yaml @@ -0,0 +1,78 @@ +version: '3.7' + +services: + + influxdb: + image: influxdb:1.8 + container_name: influxdb + restart: unless-stopped + ports: + - 8086:8086 + volumes: + - /dockers/influxdb:/var/lib/influxdb + environment: + - INFLUXDB_ADMIN_ENABLED=$INFLUXDB_ADMIN_ENABLED + - INFLUXDB_ADMIN_USER=$INFLUXDB_ADMIN_USER + - INFLUXDB_ADMIN_PASSWORD=$INFLUXDB_ADMIN_PASSWORD + - INFLUXDB_DB=$INFLUX_DB + - INFLUXDB_USER=$INFLUX_USER + - INFLUX_USER_PASSWORD=$INFLUX_USER_PASSWORD + + chronograf: + image: chronograf + container_name: chronograf + restart: unless-stopped + environment: + - INFLUXDB_URL=http://influxdb:8086 + + mariadb: + image: linuxserver/mariadb + container_name: mariadb + restart: unless-stopped + environment: + - PUID=1000 + - PGID=1000 + - MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD + volumes: + - /dockers/mariadb:/config + ports: + - 3306:3306 + + phpmyadmin: + image: phpmyadmin + container_name: phpmyadmin + restart: unless-stopped + depends_on: + - mariadb + environment: + - PMA_HOST=mariadb + - PMA_PORT=3306 + + postgres: + image: postgres:14.7-alpine + container_name: postgres + restart: unless-stopped + environment: + - POSTGRES_PASSWORD=$POSTGRES_PASSWORD + volumes: + - /dockers/postgres:/var/lib/postgresql/data + ports: + - 5432:5432 + + pgadmin4: + image: dpage/pgadmin4 + container_name: pgadmin + restart: unless-stopped + #ports: + # - '80:80' + environment: + - PGADMIN_DEFAULT_EMAIL=$PGADMIN_DEFAULT_EMAIL + - PGADMIN_DEFAULT_PASSWORD=$PGADMIN_DEFAULT_PASSWORD + - PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=True + - 'PGADMIN_CONFIG_LOGIN_BANNER="Authorised users only!"' + - PGADMIN_CONFIG_CONSOLE_LOG_LEVEL=10 + +networks: + default: + external: + name: dockers_default \ No newline at end of file