Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | docker_postgresql_replicas: 1 |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 4 | postgresql_bind_host: postgresql-db |
| 5 | postgresql_bind_port: ${_param:haproxy_postgresql_bind_port} |
| 6 | postgresql_ssl: |
| 7 | enabled: false |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 8 | 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 Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 17 | service: |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 18 | postgresql-db: |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 19 | image: ${_param:docker_image_postgresql} |
| 20 | deploy: |
| 21 | replicas: ${_param:docker_postgresql_replicas} |
| 22 | restart_policy: |
| 23 | condition: any |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 24 | volumes: |
| 25 | - /srv/volumes/postgresql/data:/var/lib/postgresql/data |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 26 | ports: |
| 27 | - ${_param:haproxy_postgresql_exposed_port}:${_param:haproxy_postgresql_bind_port} |
| 28 | network: |
| 29 | default: |
| 30 | external: |
azvyagintsev | 52cd5c2 | 2018-09-19 15:01:22 +0300 | [diff] [blame^] | 31 | name: oss_backend |