Dockerfile/alpine-mysql/docker-compose.yml
ehlxr 80cee69b6e feat(): add docker-compose
Signed-off-by: ehlxr <ehlxr.me@gmail.com>
2018-03-30 18:42:32 +08:00

17 lines
355 B
YAML

version: '3'
services:
mysql:
build:
dockerfile: Dockerfile
context: .
image: ehlxr/alpine-mysql:latest
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: eDWyvjS2
MYSQL_USER: ehlxr
MYSQL_PASSWORD: prY6KaQC
MYSQL_DATABASE: admin
volumes:
- ./db-data:/data
ports:
- "3306:3306"