feat(): add docker-compose

Signed-off-by: ehlxr <ehlxr.me@gmail.com>
This commit is contained in:
ehlxr 2018-03-30 18:42:32 +08:00
parent 4ebec1bde5
commit 80cee69b6e
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
alpine-mysql/db-data

View File

@ -0,0 +1,17 @@
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"