2024-08-05 18:13:14 +08:00
|
|
|
networks:
|
|
|
|
|
1panel-network:
|
|
|
|
|
external: true
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
ghost:
|
2026-03-11 06:30:14 +08:00
|
|
|
image: ghost:6.21.2
|
2024-08-05 18:13:14 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
|
labels:
|
|
|
|
|
createdBy: "Apps"
|
|
|
|
|
restart: always
|
|
|
|
|
networks:
|
|
|
|
|
- 1panel-network
|
|
|
|
|
ports:
|
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:2368
|
|
|
|
|
volumes:
|
2024-08-05 18:26:34 +08:00
|
|
|
- ${GHOST_ROOT_PATH}/data:/var/lib/ghost/content
|
2024-08-05 18:13:14 +08:00
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=production
|
2024-08-05 19:06:53 +08:00
|
|
|
- server__host=0.0.0.0
|
2024-08-05 18:13:14 +08:00
|
|
|
- server__port=2368
|
|
|
|
|
- database__client=mysql
|
2024-08-06 11:10:46 +08:00
|
|
|
- mail__options__service=Email
|
2024-08-06 12:10:43 +08:00
|
|
|
- mail__options__secure=true
|
2025-09-04 00:36:13 +08:00
|
|
|
- url=${url}
|
|
|
|
|
- admin__url=${admin__url}
|
|
|
|
|
- database__connection__host=${database__connection__host}
|
|
|
|
|
- database__connection__user=${database__connection__user}
|
|
|
|
|
- database__connection__password=${database__connection__password}
|
|
|
|
|
- database__connection__database=${database__connection__database}
|