Files
litemall/docker/docker-compose.yml
linlinjava 7fa617631c 支持docker
* 使用docker 部署

Co-authored-by: yuana1 <zhaoky0918@gmail.com>
2020-01-06 23:53:49 +08:00

32 lines
777 B
YAML

version: '3'
services:
mysql57:
image: mysql:5.7
container_name: mysql
ports:
- "3306:3306"
command:
--character-set-server=utf8
--collation-server=utf8_general_ci
--default-authentication-plugin=mysql_native_password
volumes:
- ./db/conf.d:/etc/mysql/conf.d
- ./db/data:/var/lib/mysql
- ./db/init-sql:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: litemall123456
restart: always
litemall:
build:
context: litemall
dockerfile: Dockerfile
container_name: litemall
ports:
- "8080:8080"
volumes:
- ./litemall/storage:/storage
- ./litemall/logs:/logs
- /etc/localtime:/etc/localtime
depends_on:
- mysql57
restart: always