Skip to content

Commit

Permalink
add volume to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
antedebaas committed Jun 17, 2024
1 parent 915abb1 commit f750fe7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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" ]
Expand Down

0 comments on commit f750fe7

Please sign in to comment.