modify(dev-dbs): modify dev-dbs stack

This commit is contained in:
GengY
2024-02-28 17:08:52 +08:00
parent f71b686827
commit 8273674bab
7 changed files with 31 additions and 14 deletions

20
dev-dbs/postgres.yml Normal file
View File

@@ -0,0 +1,20 @@
# docker compose -p dbs -f ./dev-dbs/dbs.networks.set.yml -f ./dev-dbs/postgres.yml up
# docker compose -p dbs -f ./dev-dbs/dbs.networks.set.yml -f ./dev-dbs/postgres.yml up -d
services:
postgres:
image: postgres:16.2-bookworm
container_name: Dev-postgre
restart: always
environment:
- POSTGRES_PASSWORD=Kevin#0412&PGSql
volumes:
- postgresql_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
DevNet:
ipv4_address: 172.22.10.208
volumes:
postgresql_data: