MySQL
The world's most popular open-source relational database management system.
database
Usage
import { defineConfig } from 'dockup/config';
import { mysql } from 'dockup/services';
export default defineConfig({
services: [
mysql()
],
});
Metadata
This service automatically exposes metadata.
dockup metadata
Connection URL: mysql://user:password@localhost:3306/database
Can be used to connect to the database
Root Connection URL: mysql://root:password@localhost:3306/database
Root user connection string
The above are the metadata generated when using this service with the default options.
Options
Prop | Type | Default |
---|---|---|
port? | number | 3306 |
database? | string | "database" |
rootPassword? | string | "password" |
user? | string | "user" |
password? | string | "password" |
name? | string | - |
image? | string | - |
extend? | ((service: ContainerService) => ContainerService) | - |