version: "3.6" networks: haproxy-public: external: true {{ bc_ufish_docker_network }}: volumes: {{ bc_ufish_db_volume }}: services: ufish-mysql: image: mysql:latest networks: - {{ bc_ufish_docker_network }} environment: MYSQL_ROOT_PASSWORD: {{ bc_ufish_mysql_root_password }} MYSQL_PORT: 3306 MYSQL_PASSWORD: {{ bc_ufish_db_pwd }} MYSQL_USER: {{ bc_ufish_db_user }} MYSQL_DB: {{ bc_ufish_db_name }} deploy: placement: constraints: - node.role == worker - {{ bc_ufish_db_constraints }} restart_policy: condition: on-failure delay: 5s max_attempts: 3 window: 120s logging: driver: 'journald' ufish-phpmyadmin: image: phpmyadmin/phpmyadmin networks: - {{ bc_ufish_docker_network }} - haproxy-public environment: - PMA_HOST={{ bc_ufish_db_host }} deploy: placement: constraints: - node.role == worker restart_policy: condition: on-failure delay: 5s max_attempts: 3 window: 120s logging: driver: 'journald'