blob: 9b81778b2b3668d52692ad372f574cd2821faa51 [file] [log] [blame]
Ruslan Khozinov9cbfacf2017-03-30 17:44:44 +00001parameters:
2 _param:
3 docker_pushkin_db_replicas: 1
4 docker_image_pushkin_db: docker-sandbox.sandbox.mirantis.net/vstoiko/oss/pushkindb:latest
5 pushkin_db_password: pushkin
6 pushkin_db_user: pushkin
7 pushkin_db: pushkin
8 docker:
9 client:
10 service:
11 pushkin-db:
12 environment:
13 POSTGRES_USER: ${_param:pushkin_db_user}
14 POSTGRES_PASSWORD: ${_param:pushkin_db_password}
15 POSTGRES_DB: ${_param:pushkin_db}
16 replicas: ${_param:docker_pushkin_db_replicas}
17 image: ${_param:docker_image_pushkin_db}
18 restart:
19 condition: any
20 ports:
21 - ${_param:haproxy_pushkin_db_exposed_port}:${_param:haproxy_pushkin_db_bind_port}
22 volume:
23 pushkin:
24 type: bind
25 source: /srv/volumes/pushkin/data
26 destination: /var/lib/postgresql/data
27