drinfernoo

Untitled

May 8th, 2021
940
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # docker-compose.yaml
  2. services:
  3.   mariadb: # MariaDB SQL Server
  4.     container_name: mariadb
  5.     image: mariadb
  6.     ports:
  7.      - "3306:3306"
  8.     volumes:
  9.      - "/storage/docker/mariadb:/var/lib/mysql"
  10.     environment:
  11.      - MYSQL_DATABASE=ha-mariadb
  12.       - MYSQL_ROOT_PASSWORD=supersecret
  13.       - DB_HOST=http://localhost/
  14.       - TZ=America/Los_Angeles
  15.     restart: unless-stopped
  16.  
  17. # configuration.yaml
  18. recorder:
  19.   db_url: mysql://root:supersecret@localhost/ha-mariadb?charset=utf8
RAW Paste Data