Sign inSign up

yannoff/mariadb-light

By yannoff

•Updated almost 9 years ago

A feather-weight MariaDB server image.

Image
0

479

yannoff/mariadb-light repository overview

⁠yannoff/docker-mariadb-alpine/runtime

This image is to be used in conjonction with yannoff/mariadb-light-init⁠ at first run.

A light-weight MariaDB server⁠ docker⁠ image based on Alpine⁠.

⁠Usage

In the above examples, we'll assume the following use-case:

  • We'll use dbserver for the service name.
  • Persisted data is stored under /path/to/your/data on host machine.
  • Service should be accessible on port 3307 from host machine.
  • Admin password for the mariadb server is your_root_password.
⁠Usage standalone

From command-line, this image can be run directly using docker⁠.

docker run --rm --name dbserver -e MYSQL_ROOT_PASSWORD=your_root_password -v /path/to/your/data:/var/lib/mysql -p 3307:3306 yannoff/mariadb-light
⁠Usage in a stack

This image is ready for use in a docker-compose⁠ stack.

# docker-compose.yml
dbserver:
    image: yannoff/mariadb-light
    ports:
        - "3307:3306"
    volumes:
        - /path/to/your/data:/var/lib/mysql
    environment:
        - MYSQL_ROOT_PASSWORD: you_root_password

Then start your stack using docker-compose command-line.

docker-compose up -d

Tag summary

Content type

Image

Digest

Size

49.1 MB

Last updated

almost 9 years ago

docker pull yannoff/mariadb-light