  
  
  {{item.service_name}}:
    image: {{item.registry}}
    environment:
      - TZ=Asia/Tehran
    deploy:
      update_config:
        parallelism: 1
        delay: 10s
        order: start-first
      restart_policy:
        condition: any
        delay: 5s
        window: 120s 
      resources:
        limits:
          cpus: '0.5'
          memory: 50M
      replicas: 1
      mode: replicated
      placement:
        constraints:
          - node.role == worker
    ports:
      - {{item.source_port}}:{{item.target_port}}
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/timezone:/etc/timezone:ro"
    networks:
      - mother