From 80cee69b6ef6d9899e15165074c32b040b31b457 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Fri, 30 Mar 2018 18:42:32 +0800 Subject: [PATCH] :sparkles: feat(): add docker-compose Signed-off-by: ehlxr --- .gitignore | 1 + alpine-mysql/docker-compose.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .gitignore create mode 100644 alpine-mysql/docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9683030 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +alpine-mysql/db-data \ No newline at end of file diff --git a/alpine-mysql/docker-compose.yml b/alpine-mysql/docker-compose.yml new file mode 100644 index 0000000..55544d7 --- /dev/null +++ b/alpine-mysql/docker-compose.yml @@ -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" \ No newline at end of file