blob: bdad6fb8f6ad6fc3c9672c2b9144705a4cbc8f72 [file] [log] [blame]
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +03001parameters:
2 _param:
3 docker_postgresql_replicas: 1
4 docker_image_postgresql: docker-sandbox.sandbox.mirantis.net/vstoiko/oss/postgresql:latest
5 postgresql_admin_user: postgres
6 postgresql_admin_user_password: postgrespassword
7 docker:
8 client:
9 stack:
10 postgresql:
11 environment:
12 POSTGRES_USER: ${_param:postgresql_admin_user}
13 POSTGRES_PASSWORD: ${_param:postgresql_admin_user_password}
14 service:
15 db:
16 image: ${_param:docker_image_postgresql}
17 deploy:
18 replicas: ${_param:docker_postgresql_replicas}
19 restart_policy:
20 condition: any
21 ports:
22 - ${_param:haproxy_postgresql_exposed_port}:${_param:haproxy_postgresql_bind_port}
23 volumes:
24 - /srv/volumes/postgresql/data:/var/lib/postgresql/data