version: "3.7" services: frontend: build: frontend ports: - 80:80 depends_on: - backend extra_hosts: - "backend:172.24.121.152" #172.24.121.152 you host ip addr backend: build: backend