Advertisement
drinfernoo

Untitled

May 8th, 2021
1,390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.50 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement