forked from DevOps/deploy.stack
modify(directory): directory modify
This commit is contained in:
20
dbSer/postgres/prod.stack.yml
Normal file
20
dbSer/postgres/prod.stack.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
#mkdir -pv /data/volumes/postgres/data
|
||||
#pull:: docker compose --env-file ./dbSer/postgres/env.cfg -f ./dbSer/postgres/prod.stack.yml pull
|
||||
#run:: docker compose -p prod-dbs --env-file ./dbSer/postgres/env.cfg -f ./dbSer/postgres/prod.stack.yml up -d
|
||||
services:
|
||||
|
||||
postgres:
|
||||
image: ${IMAGE_TAG}
|
||||
container_name: prod-postgre
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD}
|
||||
- POSTGRES_INITDB_ARGS=--auth-host==${POSTGRES_HOST_AUTH_METHOD}
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- /data/volumes/postgres/data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
Reference in New Issue
Block a user