I have this
docker-compose:
version: '3.3' services: bd_mySql: image: mysql:5.7 restart: always ports: - "3306:3306" environment: MYSQL_USER: razvan MYSQL_PASSWORD: PepitoElDeLosPalotes MYSQL_ROOT_PASSWORD: PepitoElDeLosPalotes MYSQL_DATABASE: equipojugadores api: build: data restart: always ports: - "8084:8084" python: build: python restart: on-failure depends_on: - api dockerfile (python)
FROM python:latest ADD scraper.py / RUN pip install BeautifulSoup4 RUN pip install html5lib RUN pip install requests RUN pip install lxml CMD [ "python", "scraper.py" ] requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8084):
why?

apicontainer start up properly? Have you checked the logs?