2024-03-05 10:47:51 +08:00
|
|
|
#pull:: docker compose --env-file ./dbSer/postgres/env.cfg -f ./dbSer/postgres/test.stack.yml pull
|
|
|
|
#run:: docker compose -p test-dbs --env-file ./dbSer/postgres/env.cfg -f ./dbSer/postgres/test.stack.yml up -d
|
2024-03-05 10:22:33 +08:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: ${IMAGE_TAG}
|
2025-01-26 04:07:28 +08:00
|
|
|
container_name: test-postgres
|
2024-03-05 10:22:33 +08:00
|
|
|
restart: always
|
2025-01-26 04:02:30 +08:00
|
|
|
shm_size: 128mb
|
2024-03-05 10:22:33 +08:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD}
|
2025-01-26 04:16:33 +08:00
|
|
|
- POSTGRES_INITDB_ARGS=--auth-host=${POSTGRES_HOST_AUTH_METHOD}
|
2024-03-05 10:22:33 +08:00
|
|
|
- TZ=Asia/Shanghai
|
|
|
|
volumes:
|
2025-01-26 04:16:33 +08:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2025-01-26 04:17:52 +08:00
|
|
|
- /data/volumes/postgres/data:/var/lib/postgresql/data
|
2024-03-05 10:22:33 +08:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|