20 lines
615 B
YAML
20 lines
615 B
YAML
#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: |