blob: b3936c64dc4e5f258de19cbd928493df5305f3ff [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
10 postgresql_admin_user_password: postgrespassword
11 docker:
12 client:
13 stack:
14 postgresql:
15 environment:
16 POSTGRES_USER: ${_param:postgresql_admin_user}
17 POSTGRES_PASSWORD: ${_param:postgresql_admin_user_password}
Stanislav Riazanovaeec70f2018-12-11 17:14:45 +040018 PGDATA: /var/lib/postgresql/data/pgdata
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030019 service:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030020 postgresql-db:
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030021 image: ${_param:docker_image_postgresql}
22 deploy:
23 replicas: ${_param:docker_postgresql_replicas}
24 restart_policy:
25 condition: any
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030026 volumes:
27 - /srv/volumes/postgresql/data:/var/lib/postgresql/data
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030028 ports:
Stanislav Riazanovaeec70f2018-12-11 17:14:45 +040029 - ${_param:postgresql_exposed_port}:${_param:postgresql_bind_port}