services/mariadb/docker-compose.yml

24 lines
664 B
YAML
Raw Normal View History

2022-02-14 21:03:35 +01:00
version: "3.8"
volumes:
mariadb:
name: ${MARIADB_VOLUME_NAME:-mariadb}
services:
mariadb:
container_name: ${MARIADB_CONTAINER_NAME:-mariadb}
image: ${MARIADB_IMAGE:-mariadb:10.7.1-focal}
command: ${MARIADB_COMMAND}
restart: always
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:?err}
MARIADB_USER: ${MARIADB_USER:?err}
MARIADB_PASSWORD: ${MARIADB_PASSWORD:?err}
MARIADB_DATABASE: ${MARIADB_DATABASE:?err}
PUID: ${MARIADB_PUID:-1000}
PGID: ${MARIADB_PGID:-1000}
volumes:
- mariadb:/var/lib/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro