forked from DevOps/deploy.stack
modify(dev-dbs): modify env name
This commit is contained in:
3
dev-dbs/postgres/env.cfg
Normal file
3
dev-dbs/postgres/env.cfg
Normal file
@@ -0,0 +1,3 @@
|
||||
#IMAGE_TAG=postgres:14.11-bookworm
|
||||
#IMAGE_TAG=postgres:15.6-bookworm
|
||||
IMAGE_TAG=postgres:16.2-bookworm
|
||||
20
dev-dbs/postgres/stack.yml
Normal file
20
dev-dbs/postgres/stack.yml
Normal 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:
|
||||
Reference in New Issue
Block a user