You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.4 KiB
59 lines
1.4 KiB
version: '3.6' |
|
|
|
networks: |
|
{% if bc_ufish_behind_haproxy %} |
|
haproxy-public: |
|
external: true |
|
{% endif %} |
|
{{ bc_ufish_docker_network }}: |
|
|
|
volumes: |
|
{{ bc_ufish_db_volume }}: |
|
|
|
services: |
|
{{ bc_ufish_docker_service_server_name }}: |
|
image: {{ bc_ufish_docker_server_image }} |
|
networks: |
|
- {{ bc_ufish_docker_network }} |
|
{% if bc_ufish_behind_haproxy %} |
|
- haproxy-public |
|
{% endif %} |
|
environment: |
|
MYSQL_HOST: {{ bc_ufish_db_host }} |
|
MYSQL_PORT: 3306 |
|
MYSQL_PASSWORD: {{ bc_ufish_db_pwd }} |
|
MYSQL_USER: {{ bc_ufish_db_user }} |
|
MYSQL_DB: {{ bc_ufish_db_name }} |
|
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' |
|
{{ bc_ufish_docker_service_client_name }}: |
|
image: {{ bc_ufish_docker_client_image }} |
|
networks: |
|
- {{ bc_ufish_docker_network }} |
|
{% if bc_ufish_behind_haproxy %} |
|
- haproxy-public |
|
{% 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'
|
|
|