docker-compose 启动 halo
·
Halo 是一个开源的个人博客系统,旨在提供简洁、高效且易于使用的博客平台。它支持自定义主题、文章管理、评论等功能,适合个人和小型团队搭建自己的博客或网站。通常用于快速搭建内容管理系统(CMS),并具有现代化的界面和功能扩展性。
services:
halo:
image: registry.fit2cloud.com/halo/halo:2.21
container_name: halo
restart: on-failure:3
depends_on:
halodb:
condition: service_healthy
networks:
- halo_network
volumes:
- /vol1/1000/系统/docker/halo/app:/root/.halo2
ports:
- "18080:8090"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8090/actuator/health/readiness"]
interval: 30s
timeout: 5s
retries: 5
start_period: 30s
environment:
- JVM_OPTS=-Xmx256m -Xms256m
command:
- --spring.r2dbc.url=r2dbc:pool:postgresql://halodb/halo
- --spring.r2dbc.username=halo
- --spring.r2dbc.password=openpostgresql
- --spring.sql.init.platform=postgresql
- --halo.external-url=http://localhost:8090/
halodb:
image: postgres:15.4
container_name: halodb
restart: on-failure:3
networks:
- halo_network
volumes:
- /vol1/1000/系统/docker/halo/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
environment:
- POSTGRES_PASSWORD=openpostgresql
- POSTGRES_USER=halo
- POSTGRES_DB=halo
- PGUSER=halo
networks:
halo_network:
driver: bridge
更多推荐





所有评论(0)