clean git
This commit is contained in:
53
compose-prod.yml
Normal file
53
compose-prod.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
services:
|
||||
halo:
|
||||
image: registry.fit2cloud.com/halo/halo:2.17.1
|
||||
container_name: halo
|
||||
restart: on-failure:3
|
||||
depends_on:
|
||||
halodb:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- /data/halo/halo2:/root/.halo2
|
||||
ports:
|
||||
- "127.0.0.1:8090:8090"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8090/actuator/health/readiness"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
command:
|
||||
- --spring.r2dbc.url=r2dbc:pool:mysql://halodb:3306/yact-home
|
||||
- --spring.r2dbc.username=root
|
||||
# PostgreSQL 的密码,请保证与下方 POSTGRES_PASSWORD 的变量值一致。
|
||||
- --spring.r2dbc.password=BIBzkazKSArPov5q
|
||||
- --spring.sql.init.platform=mysql
|
||||
# 外部访问地址,请根据实际需要修改
|
||||
- --halo.external-url=https://yact.com.cn
|
||||
# 初始化的超级管理员用户名
|
||||
- --halo.security.initializer.superadminusername=admin
|
||||
# 初始化的超级管理员密码
|
||||
- --halo.security.initializer.superadminpassword=szgs6666
|
||||
environment:
|
||||
- SPRING_THYMELEAF_CACHE=true
|
||||
halodb:
|
||||
image: docker.mirrors.yacloud.net/library/mysql:8.1.0
|
||||
container_name: halodb
|
||||
restart: on-failure:3
|
||||
command:
|
||||
- --default-authentication-plugin=caching_sha2_password
|
||||
- --character-set-server=utf8mb4
|
||||
- --collation-server=utf8mb4_general_ci
|
||||
- --explicit_defaults_for_timestamp=true
|
||||
volumes:
|
||||
- /data/halo/mysql:/var/lib/mysql
|
||||
- /data/halo/mysqlBackup:/data/mysqlBackup
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
|
||||
interval: 3s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
environment:
|
||||
# 请修改此密码,并对应修改上方 Halo 服务的 SPRING_R2DBC_PASSWORD 变量值
|
||||
- MYSQL_ROOT_PASSWORD=BIBzkazKSArPov5q
|
||||
- MYSQL_DATABASE=yact-home
|
Reference in New Issue
Block a user