2020-11-19 20:51:53 +01:00
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
{{ postgres_service_name }}:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "{{ postgres_jdbc_user }}"
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_jdbc_pass }}"
|
|
|
|
POSTGRES_DB: "{{ postgres_jdbc_db }}"
|
|
|
|
networks:
|
|
|
|
- {{ conductor_network }}
|
|
|
|
deploy:
|
|
|
|
replicas: {{ postgres_replicas }}
|
2021-05-18 15:10:08 +02:00
|
|
|
{% if infrastructure != 'local' %}
|
2020-11-19 20:51:53 +01:00
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
2021-05-18 15:10:08 +02:00
|
|
|
{% endif %}
|
2020-11-19 20:51:53 +01:00
|
|
|
networks:
|
|
|
|
{{ conductor_network }}:
|