nginx is not working with ansible playbook

I’m using ansible to deploy nginx-vts , prometheus, exporter and php everything works fine but nginx keeps stopping and exiting …. if i run the same images with docker compose they tun normally without a problem .
the nginx image is based on alpine i modified it so it can run with vts … when i built the image i used the command ( docker built –network host -t x .) is there a problem or can the network command effect how it will runs on ansible ?

this is an image of the -v stats in ansible

this is my ansible playbook

- hosts: localhost
  connection: local
  tasks:
  - name: x-vts
    docker_container:
      name: x-nginx
      image: x:latest
      state: started
      volumes:
       - ./php:/var/www/html/x.com
       - ./site.conf:/etc/nginx/conf.d/x.com.conf:ro
      ports:
       - 80:80
  - name: php
    docker_container:
      name: x-php
      image: php:fpm
      state: started
      volumes:
       - ./php:/var/www/html/x.com
  - name: nginx-vts-exporter
    docker_container:
      name: x-Exporter
      image: sophos/nginx-vts-exporter:latest
      state: started
      ports:
       - 9913:9913
      command:
       - NGINX_HOST=http://nginx:80
   - name: prom
    docker_container:
      name: x-prometheus
      image: prom/prometheus:latest
      state: started
      ports:
       - 9090:9090
      volumes:
       - ./monitor/prometheus.yml:/etc/prometheus/prometheus.yml

Please Keep in mind that it runs normally on docker compose

when i add ,,, command: sleep 1

the error is changed to this

the new error photo

Source: StackOverflow