← All components
MySQL Database
MySQL database integration via Docker and Prisma ORM. Includes Docker Compose configuration and Prisma schema for MySQL. Pair with the existing prisma component for the ORM.
Copy the files below, or open this folder on GitHub. Each file is stamped with a limited-use licence, generator and date. SHA-256 is of the published catalog bytes, before the stamp.
- id
- mysql
- stack
- Next.js
- version
- 1.0.0
- compatibility
- nextjs >=16 <17 · react >=19 <20
- requires
- nextjs-base
- env vars
- DATABASE_URL, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, MYSQL_ROOT_PASSWORD
Verified passing · daily buildIntegrity sha256:0fe44c0bf6bbc3eb…
Files (3)
docker-compose.yml · sha256:0fe44c0bf6bbc3eb…
// Licensed by BotKelp — https://www.botkelp.com
/**
* MySQL Docker Compose Configuration
*
* This configuration sets up a MySQL 8.0 container for development.
*
* Source: https://hub.docker.com/_/mysql
* Verified: 2026-09-06
*/
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: mysql_db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-rootpassword}
MYSQL_DATABASE: ${MYSQL_DATABASE:-mydb}
MYSQL_USER: ${MYSQL_USER:-mysqluser}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-mysqlpassword}
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
volumes:
mysql_data:
driver: local