version: '3'

services:
  webhook:
    image: holmescode/deploy-webhook:latest
    deploy:
      replicas: 1
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
      labels:
        - traefik.port=5000
        - traefik.backend=holmescode-deploy
        - traefik.frontend.rule=Host:www.holmescode.com,holmescode.com;PathPrefixStrip:/deploy
        - traefik.frontend.priority=100
    networks:
      - ingress
      - private

  listener:
    image: holmescode/deploy-listener:latest
    deploy:
      replicas: 1
      update_config:
        parallelism: !
        delay: 10s
      restart_policy:
        conditions: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
    environment:
      - LISTENER_AMQP_URL=amqp://queue
    networks:
      - private
  
  queue:
    image: rabbitmq:3.6-alpine
    deploy:
      replicas: 1
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
    networks:
      - private

networks:
  private:
    driver: overlay
  ingress:
    external:
      name: core_ingress

version: '3'

services:
  webhook:
    image: holmescode/deploy-webhook:latest
    deploy:
      replicas: 1
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
      labels:
        - traefik.port=5000
        - traefik.backend=holmescode-deploy
        - traefik.frontend.rule=Host:www.holmescode.com,holmescode.com;PathPrefixStrip:/deploy
        - traefik.frontend.priority=100
    networks:
      - ingress
      - private

  listener:
    image: holmescode/deploy-listener:latest
    deploy:
      replicas: 1
      update_config:
        parallelism: !
        delay: 10s
      restart_policy:
        conditions: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
    environment:
      - "LISTENER_AMQP_URL=amqp://queue"
    networks:
      - private
  
  queue:
    image: rabbitmq:3.6-alpine
    deploy:
      replicas: 1
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
    networks:
      - private

networks:
  private:
    driver: overlay
  ingress:
    external:
      name: core_ingress

Make the url a string
Make the url a string
