72 lines
2.0 KiB
YAML
72 lines
2.0 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
# nginx:
|
|
# image: "nginx:1.23.3-alpine"
|
|
# container_name: halo-nginx
|
|
# restart: always
|
|
# networks:
|
|
# halo_network:
|
|
# volumes:
|
|
# - $PWD/nginx.conf:/etc/nginx/nginx.conf
|
|
# - $PWD/certs:/etc/nginx/certs
|
|
# ports:
|
|
# - "80:80"
|
|
# depends_on:
|
|
# - halo
|
|
halo:
|
|
image: halohub/halo:2.3.2
|
|
container_name: halo
|
|
restart: on-failure:3
|
|
depends_on:
|
|
halodb:
|
|
condition: service_healthy
|
|
networks:
|
|
halo_network:
|
|
volumes:
|
|
- /data/halo/halo2:/root/.halo2
|
|
# - $PWD/theme-yact:/root/.halo2/themes/yact-theme
|
|
ports:
|
|
- "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:postgresql://halodb/yact-home
|
|
- --spring.r2dbc.username=szgs2019
|
|
# PostgreSQL 的密码,请保证与下方 POSTGRES_PASSWORD 的变量值一致。
|
|
- --spring.r2dbc.password=BIBzkazKSArPov5q
|
|
- --spring.sql.init.platform=postgresql
|
|
# 外部访问地址,请根据实际需要修改
|
|
- --halo.external-url=http://125.64.33.46:8090
|
|
# 初始化的超级管理员用户名
|
|
- --halo.security.initializer.superadminusername=admin
|
|
# 初始化的超级管理员密码
|
|
- --halo.security.initializer.superadminpassword=szgs6666
|
|
environment:
|
|
- SPRING_THYMELEAF_CACHE=false
|
|
halodb:
|
|
image: postgres:latest
|
|
container_name: halodb
|
|
restart: on-failure:3
|
|
networks:
|
|
halo_network:
|
|
volumes:
|
|
- /data/halo/db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: [ "CMD", "pg_isready" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
environment:
|
|
- POSTGRES_PASSWORD=BIBzkazKSArPov5q
|
|
- POSTGRES_USER=szgs2019
|
|
- POSTGRES_DB=yact-home
|
|
- PGUSER=szgs2019
|
|
|
|
networks:
|
|
halo_network:
|
|
external: false |