Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get /json/version by hostname #43

Open
RomanDashevsky opened this issue Feb 3, 2019 · 0 comments
Open

can't get /json/version by hostname #43

RomanDashevsky opened this issue Feb 3, 2019 · 0 comments

Comments

@RomanDashevsky
Copy link

RomanDashevsky commented Feb 3, 2019

I'm using docker-compose, here is .yml

version: '3'

services:
  crawler:
    build: ./images/crawler
    environment:
      - DEV_MOD=YES
    volumes:
      - ../../:/var/www/app
    networks:
      - crawler
    stdin_open: true
    tty: true
    ports:
      - "3333:3333"
    depends_on:
      - redis
      - chrome

  chrome:
    image: justinribeiro/chrome-headless
    privileged: true
    networks:
      - crawler
    ports:
      - "9222:9222"

  redis:
    image: redis:5-alpine
    networks:
      - crawler
    ports:
      - "6379:6379"

networks:
  crawler:
    ipam:
      config:
        - subnet: 172.50.0.0/24

I try get data by wget from crawler container:

If I using hostname of chrome container, I get error
/var/www/app # wget http://chrome:9222/json/version
Connecting to chrome:9222 (172.50.0.3:9222)
wget: server returned error: HTTP/1.1 500 Internal Server Error

If I using ip of chrome container, I get 200 responce.
/var/www/app # wget http://172.50.0.3:9222/json/version
Connecting to 172.50.0.3:9222 (172.50.0.3:9222)
version 100% |****************************************************| 422 0:00:00 ETA

Is it chrome issue or my docker-compose config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant