learn-go/snippetbox/docker-compose.yml
2024-01-24 22:56:58 -08:00

15 lines
222 B
YAML

version: "3.7"
services:
db:
image: mariadb
env_file: .env
volumes:
- mysql_data:/var/lib/mysql
- ./db/initdb.d:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
volumes:
mysql_data: