22 lines
316 B
Plaintext
Executable File
22 lines
316 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="MariaDB docker container"
|
|
|
|
depend() {
|
|
need docker net
|
|
use dns logger netmount
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name mariadb \
|
|
-h mariadb \
|
|
-v /srv/mariadb/conf:/etc/mysql \
|
|
-v /srv/mariadb/data:/var/lib/mysql \
|
|
mariadb
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop mariadb
|
|
}
|