2024-08-05 18:13:14 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
ghost:
|
2024-10-19 12:06:37 +08:00
|
|
|
image: ghost:5.97.0
|
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
|
|
|
|
env_file:
|
|
|
|
- /etc/1panel/envs/global.env
|
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
|
|
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
|