feat(nginxpulse): add nginxpulse deployment files

This commit is contained in:
cnphpbb
2026-07-22 16:29:14 +08:00
parent 599b8e9d2f
commit bc96bc6977
3 changed files with 66 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
services:
postgres:
image: ${PG_IMAGE_TAG_V18}
container_name: prod-postgres
shm_size: 256mb
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD}
- POSTGRES_INITDB_ARGS=--auth-host=${POSTGRES_HOST_AUTH_METHOD}
- TZ=Asia/Shanghai
volumes:
- ${PG_Volumes_Path}/data:/var/lib/postgresql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "5432:5432"
restart: unless-stopped
nginxpulse:
image: ${NP_IMAGE_TAG}
container_name: local_nginxpulse
ports:
- "8088:8088"
- "8089:8089"
volumes:
- ${NP_Volumes_Path}/logs:/share/logs
- ${NP_Volumes_Path}/nginxpulse_data:/app/var/nginxpulse_data
- ${NP_Volumes_Path}/configs:/app/configs
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
stop_grace_period: 90s
restart: unless-stopped
environment:
- TZ=Asia/Shanghai