2024-08-05 18:13:14 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
ghost:
|
2024-11-26 08:20:08 +08:00
|
|
|
image: ghost:5.101.4
|
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:
|
2024-11-27 17:54:18 +08:00
|
|
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
2024-08-05 18:13:14 +08:00
|
|
|
- ${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
|