diff --git a/docker-compose.yml b/docker-compose.yml index 3c6ccaa..b2b6ae2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,15 +1,18 @@ name: dmarc-smtptls-reports -version: "2" +volumes: + reports-data: services: db: image: mariadb:latest environment: - MYSQL_DATABASE: - MYSQL_USER: - MYSQL_PASSWORD: - MYSQL_ROOT_PASSWORD: + MARIADB_DATABASE: + MARIADB_USER: + MARIADB_PASSWORD: + MARIADB_ROOT_PASSWORD: ports: - 3306 + volumes: + - reports-data:/var/lib/mysql restart: unless-stopped healthcheck: test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]