Skip to content

Instantly share code, notes, and snippets.

@oxlb
Created August 6, 2020 13:54
Show Gist options
  • Select an option

  • Save oxlb/863295960dc0e69dc1d20c23c3464721 to your computer and use it in GitHub Desktop.

Select an option

Save oxlb/863295960dc0e69dc1d20c23c3464721 to your computer and use it in GitHub Desktop.
Docker Compose MariaDB
version: '3.1'
services:
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: mydb
MYSQL_USER: user
MYSQL_PASSWORD: user
volumes:
- ./init:/docker-entrypoint-initdb.d
adminer:
image: adminer
restart: always
ports:
- 8080:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment