blob: 73435fbd27afddb102f66a27758956ced3b89472 [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 Stoikoe5ab6032017-04-22 17:41:29 +03005 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}
Volodymyr Stoikoe116c972017-07-10 14:10:29 +030014 SQLALCHEMY_POOL_RECYCLE: 14400
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030015 service:
16 db:
17 image: ${_param:docker_image_postgresql}
18 deploy:
19 replicas: ${_param:docker_postgresql_replicas}
20 restart_policy:
21 condition: any
22 ports:
23 - ${_param:haproxy_postgresql_exposed_port}:${_param:haproxy_postgresql_bind_port}
24 volumes:
25 - /srv/volumes/postgresql/data:/var/lib/postgresql/data