Commit 7b615fa7 authored by Asura's avatar Asura

🔨 refactor(master): 使用H2数据库 简化部署

Signed-off-by: default avatarAsura <luodaoyi@gmail.com>
parent 9b960c76
......@@ -4,17 +4,10 @@ services:
web:
image: luodaoyi/solo
restart: always
restart: unless-stopped
ports:
- 8080:8080
depends_on:
- db
environment:
DATABASE_TYPE: mysql
DATABASE_HOST: db
DATABASE_NAME: solo
DATABASE_USERNAME: solo
DATABASE_PASSWORD: solo
SERVER_SCHMEA: https
SERVER_NAME: <your host>
SERVER_PORT: 80
......@@ -22,18 +15,8 @@ services:
EMAIL_PASSWORD: <your smtp password>
SMTP_HOST: <your smtp host>
SMTP_PROT: <your smtp port>
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: somesolo
MYSQL_DATABASE: solo
MYSQL_USER: solo
MYSQL_PASSWORD: solo
volumes:
- mysql-data:/var/lib/mysql
- database:/opt/b3log/backup
volumes:
mysql-data:
\ No newline at end of file
database:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment