blob: 192b82c74d852e1b257580ac43ad65b1da364df8 [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
5 postgresql_bind_port: ${_param:haproxy_postgresql_bind_port}
6 postgresql_ssl:
7 enabled: false
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +03008 postgresql_admin_user: postgres
9 postgresql_admin_user_password: postgrespassword
10 docker:
11 client:
12 stack:
13 postgresql:
14 environment:
15 POSTGRES_USER: ${_param:postgresql_admin_user}
16 POSTGRES_PASSWORD: ${_param:postgresql_admin_user_password}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030017 service:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030018 postgresql-db:
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030019 image: ${_param:docker_image_postgresql}
20 deploy:
21 replicas: ${_param:docker_postgresql_replicas}
22 restart_policy:
23 condition: any
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030024 volumes:
25 - /srv/volumes/postgresql/data:/var/lib/postgresql/data
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030026 ports:
27 - ${_param:haproxy_postgresql_exposed_port}:${_param:haproxy_postgresql_bind_port}
28 network:
29 default:
30 external:
azvyagintsev52cd5c22018-09-19 15:01:22 +030031 name: oss_backend