blob: 2d6d7e7606967c81d97c4d46a1fcc2d91200b895 [file] [log] [blame]
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +03001parameters:
2 _param:
3 docker_postgresql_replicas: 1
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +03004 postgresql_bind_host: postgresql-db
Stanislav Riazanovaeec70f2018-12-11 17:14:45 +04005 postgresql_bind_port: 5432
6 postgresql_exposed_port: 5432
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +03007 postgresql_ssl:
8 enabled: false
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +03009 postgresql_admin_user: postgres
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030010 docker:
11 client:
Ivan Berezovskiy679709c2019-06-27 15:44:34 +040012 images:
13 - ${_param:docker_image_postgresql}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030014 stack:
15 postgresql:
16 environment:
17 POSTGRES_USER: ${_param:postgresql_admin_user}
18 POSTGRES_PASSWORD: ${_param:postgresql_admin_user_password}
Stanislav Riazanovaeec70f2018-12-11 17:14:45 +040019 PGDATA: /var/lib/postgresql/data/pgdata
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030020 service:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030021 postgresql-db:
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030022 image: ${_param:docker_image_postgresql}
23 deploy:
24 replicas: ${_param:docker_postgresql_replicas}
25 restart_policy:
26 condition: any
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030027 volumes:
28 - /srv/volumes/postgresql/data:/var/lib/postgresql/data
Martin Polreich6b189572019-07-17 15:05:22 +020029 - /var/run/postgresql:/var/run/postgresql
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030030 ports:
Stanislav Riazanovaeec70f2018-12-11 17:14:45 +040031 - ${_param:postgresql_exposed_port}:${_param:postgresql_bind_port}