38 lines
949 B
Django/Jinja
38 lines
949 B
Django/Jinja
version: '3.6'
|
|
|
|
networks:
|
|
{% if ariadne_portal_behind_haproxy %}
|
|
haproxy-public:
|
|
external: true
|
|
{% endif %}
|
|
|
|
services:
|
|
{{ ariadne_portal_docker_service_client_name }}:
|
|
image: {{ ariadne_portal_docker_client_image }}
|
|
{% if ariadne_portal_behind_haproxy %}
|
|
networks:
|
|
- haproxy-public
|
|
{% endif %}
|
|
{% if ariadne_portal_smtp %}
|
|
environment:
|
|
- SMTP_HOST={{ ariadne_portal_smtp_host }}
|
|
- SMTP_PORT={{ ariadne_portal_smtp_port }}
|
|
- SMTP_CHANNEL={{ ariadne_portal_smtp_channel }}
|
|
- SMTP_PROTOCOL=smtp
|
|
- SMTP_USER={{ ariadne_portal_smtp_user }}
|
|
- SMTP_PASS={{ ariadne_portal_smtp_password }}
|
|
{% endif %}
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
endpoint_mode: dnsrr
|
|
placement:
|
|
constraints: [node.role == worker]
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 5s
|
|
max_attempts: 3
|
|
window: 120s
|
|
logging:
|
|
driver: 'journald'
|