mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-14 17:01:05 +01:00
18 lines
563 B
Plaintext
18 lines
563 B
Plaintext
|
database:
|
||
|
logging:
|
||
|
driver: journald
|
||
|
image: mariadb
|
||
|
restart: always
|
||
|
environment:
|
||
|
MYSQL_DATABASE: "{{database_databasename}}"
|
||
|
MYSQL_USER: "{{database_username}}"
|
||
|
MYSQL_PASSWORD: "{{database_password}}"
|
||
|
MYSQL_ROOT_PASSWORD: "{{database_password}}"
|
||
|
MARIADB_AUTO_UPGRADE: "1"
|
||
|
volumes:
|
||
|
- database:/var/lib/mysql
|
||
|
healthcheck:
|
||
|
test: "/usr/bin/mariadb --user={{database_username}} --password={{database_password}} --execute \"SHOW DATABASES;\""
|
||
|
interval: 3s
|
||
|
timeout: 1s
|
||
|
retries: 5
|