2023-07-13 15:34:02 +08:00
|
|
|
version: '3'
|
2023-04-03 13:38:30 +08:00
|
|
|
services:
|
|
|
|
halo:
|
2023-10-30 16:43:44 +08:00
|
|
|
image: halohub/halo:2.10.1
|
2023-04-03 13:38:30 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
volumes:
|
|
|
|
- ./data:/root/.halo2
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8090
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "curl", "-f", "http://localhost:8090/actuator/health/readiness" ]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
start_period: 30s
|
|
|
|
command:
|
2023-09-11 15:30:51 +08:00
|
|
|
- --spring.r2dbc.url=r2dbc:pool:${PANEL_DB_TYPE}://${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
|
2023-04-03 13:38:30 +08:00
|
|
|
- --spring.r2dbc.username=${PANEL_DB_USER}
|
|
|
|
- --spring.r2dbc.password=${PANEL_DB_USER_PASSWORD}
|
2023-09-11 15:30:51 +08:00
|
|
|
- --spring.sql.init.platform=${PANEL_DB_TYPE}
|
2023-04-03 13:38:30 +08:00
|
|
|
- --halo.external-url=${HALO_EXTERNAL_URL}
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|