Docker depends_on doesn't work

Hello every one, i need help when i used network_mode: “host” in auth container then depends_on - eureka doesn’t connect in auth container. i got the issue it’s may be problem for using host but i don’t know how to solved this problem

version: “3.8”

services:

    eureka:
            build: ./eureka/
            image: eureka-server
            container_name: eureka
            ports:
                    - "8762:8762"
            deploy:
                    resources:
                            limits:
                                    cpus: '0.10'
                                    memory: 512M
    auth:
            build: ./auth/
            image: auth-server
            container_name: auth
            network_mode: "host"
            ports:
                    - "9192:9192"
            depends_on:
                    - eureka
            volumes:
                    - /opt/docker/log:/app/log
            deploy:
                    resources:
                            limits:
                                    cpus: '0.30'
                                    memory: 512M

… APlication configuration…
spring.da tasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://192.168.0.33:3306/testdb?useSSL=false&createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=root

eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/
eureka.instance.preferIpAddress=true

This is described in the docs for depends_on. Additional info in the Docker-compose documentation.