blob: 42ebf8fb007b79fd2679803e255e1a41c91e09bb [file] [log] [blame]
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +03001parameters:
2 _param:
3 docker_postgresql_replicas: 1
Volodymyr Stoiko9d0fb122017-05-23 15:22:08 +03004 docker_image_postgresql: library/postgres:9.6
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +03005 postgresql_bind_host: postgresql-db
6 postgresql_bind_port: ${_param:haproxy_postgresql_bind_port}
7 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}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030018 service:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030019 postgresql-db:
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030020 image: ${_param:docker_image_postgresql}
21 deploy:
22 replicas: ${_param:docker_postgresql_replicas}
23 restart_policy:
24 condition: any
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030025 volumes:
26 - /srv/volumes/postgresql/data:/var/lib/postgresql/data
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030027 ports:
28 - ${_param:haproxy_postgresql_exposed_port}:${_param:haproxy_postgresql_bind_port}
29 network:
30 default:
31 external:
32 name: oss_backend