feat: Added docker compose file for database

This commit is contained in:
Cyper committed 2026-05-01 22:05:32 -04:00
1 parent 92fce5bd7b
commit 3a4afda503
1 file changed
+29
+29
View File
@@ -0,0 +1,29 @@
version: '3.9'
services:
mariadb:
image: mariadb:11
container_name: mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: <PASSWORD>
MYSQL_DATABASE: foobar
MYSQL_USER: foo
MYSQL_PASSWORD: <PASSWORD>
ports:
- '3306:3306'
volumes:
- mariadb_data:/var/lib/mysql
- ./my.cnf:/etc/mysql/conf.d/my.cnf:ro
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 10s
timeout: 5s
retries: 5
volumes:
mariadb_data: