psql manifests added
This commit is contained in:
parent
fc4ded9305
commit
b7ed9d9bec
1
psql/README.md
Normal file
1
psql/README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
docker stack deploy -c posgtresql.yml postgres-db
|
||||||
25
psql/posgtresql.yml
Normal file
25
psql/posgtresql.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
version: '3.3'
|
||||||
|
services:
|
||||||
|
postgres-db:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: '98836'
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
volumes:
|
||||||
|
- /var/data/psql:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- postgres_network
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
deploy:
|
||||||
|
update_config:
|
||||||
|
delay: 10s
|
||||||
|
failure_action: rollback
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.platform == prod
|
||||||
|
networks:
|
||||||
|
postgres_network:
|
||||||
|
external: true
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user