forked from DevOps/deploy.stack
up(dbSer): mysql && postgres
This commit is contained in:
@@ -7,14 +7,15 @@ services:
|
||||
image: ${IMAGE_TAG}
|
||||
container_name: prod-postgre
|
||||
restart: always
|
||||
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}
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- /data/volumes/postgres/data:/var/lib/postgresql/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "5432:5432"
|
||||
Reference in New Issue
Block a user