Merge branch 'release/0.1.0'

This commit is contained in:
SimpleYoungMan 2019-10-29 17:23:32 +08:00
commit 2601937fa4
2 changed files with 6 additions and 3 deletions

View File

@ -2,10 +2,10 @@ version: '3'
services:
db:
container_name: v2board-db
image: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_ROOT_PASSWORD=123456
volumes:
- ./docker/mysql:/var/lib/mysql
- ./install.sql:/install.sql

View File

@ -32,5 +32,8 @@
> docker run --rm -v $(pwd):/app composer install
> docker run --rm -v $(pwd):/app composer sh init.sh
> ```
2. 进入 docker 容器从 `install.sql` 文件中恢复表
2. 执行 `docker-compose run --rm db` 进入 docker 容器从 `install.sql` 文件中恢复表后执行 `docker-compose down`
3. 执行 `docker-compose up -d` 启动服务
## 注意
每次修改 `.env` 文件后需要执行 `docker run --rm -v $(pwd):/app composer sh init.sh`