modify(dev-dbs): modify env name

This commit is contained in:
GengY
2024-03-05 08:52:26 +08:00
parent beecaa6b22
commit 5d289eb395
6 changed files with 51 additions and 5 deletions

3
dev-dbs/postgres/env.cfg Normal file
View File

@@ -0,0 +1,3 @@
#IMAGE_TAG=postgres:14.11-bookworm
#IMAGE_TAG=postgres:15.6-bookworm
IMAGE_TAG=postgres:16.2-bookworm

View File

@@ -0,0 +1,20 @@
#pull:: docker compose --env-file ./dev-dbs/postgres/env.cfg -f ./dev-dbs/postgres/stack.yml pull
#run:: docker compose -p dev-dbs --env-file ./dev-dbs/postgres/env.cfg -f ./dev-dbs/postgres/stack.yml up -d
services:
postgres:
image: ${IMAGE_TAG}
container_name: Dev-postgre
restart: always
environment:
- POSTGRES_PASSWORD=Kevin0412PgSql
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
- TZ=Asia/Shanghai
volumes:
- postgresql_data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgresql_data: