54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: halo
|
|
|
|
services:
|
|
halo:
|
|
container_name: halo
|
|
image: registry.fit2cloud.com/halo/halo:2.21
|
|
restart: on-failure:3
|
|
depends_on:
|
|
database:
|
|
condition: service_healthy
|
|
networks:
|
|
- halo
|
|
- proxy
|
|
volumes:
|
|
- ./data:/root/.halo2
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8090/actuator/health/readiness"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|
|
environment:
|
|
- JVM_OPTS=-Xmx1024m -Xms1024m
|
|
command:
|
|
- --spring.r2dbc.url=r2dbc:pool:postgresql://halo-database/halo
|
|
- --spring.r2dbc.username=halo
|
|
- --spring.r2dbc.password=justexample
|
|
- --spring.sql.init.platform=postgresql
|
|
- --halo.external-url=https://halo.example.com
|
|
|
|
database:
|
|
container_name: halo-database
|
|
image: postgres:15.4
|
|
restart: on-failure:3
|
|
networks:
|
|
- halo
|
|
volumes:
|
|
- ./database:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: [ "CMD", "pg_isready" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
environment:
|
|
- POSTGRES_PASSWORD=justexample
|
|
- POSTGRES_USER=halo
|
|
- POSTGRES_DB=halo
|
|
|
|
networks:
|
|
halo:
|
|
name: halo
|
|
proxy:
|
|
external: true
|