Skip to content

Instantly share code, notes, and snippets.

@Burakhan
Created June 21, 2022 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Burakhan/b0efd12aec9e7c83c2926694948a879a to your computer and use it in GitHub Desktop.
Save Burakhan/b0efd12aec9e7c83c2926694948a879a to your computer and use it in GitHub Desktop.
namespace: burakhan
db:
defines: runnable
variables:
image-tag:
type: string
value: latest
rpc-port:
type: int
value: 3306
mysql_database:
type: string
value: default
mysql_password:
type: string
value: password
mysql_user:
type: string
value: user
mysql_root_password:
value: password
type: string
containers:
defines: containers
mysql:
paths:
- <- `${moncc-volume-path}/mysql:/var/lib/mysql`
ports:
- <- `0.0.0.0:${rpc-port}:3306`
environment:
- <- `MYSQL_PASSWORD=${mysql_password}`
- <- `MYSQL_ROOT_PASSWORD=${mysql_root_password}`
- <- `MYSQL_USER=${mysql_user}`
- <- `MYSQL_DATABASE=${mysql_database}`
image-tag: <- `${image-tag}`
image: docker.io/library/mysql
version: latest
metadata:
defines: metadata
tags: database
website: https://www.mysql.com/
email: burakhanozyol@gmail.com
name: MySQL
publisher: Monk Builders Team
icon: https://assets.monk.io/icons/MySQL-Logo.wine.png
source: https://github.com/docker-library/mysql
description: MySQL is a widely used, open-source relational database management
system (RDBMS).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment