forked from DevOps/deploy.stack
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
|
|
|
||
|
|
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
|