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

Request not send to origin when using docker-compose #9

Open
n0b0dyCN opened this issue Aug 19, 2018 · 0 comments
Open

Request not send to origin when using docker-compose #9

n0b0dyCN opened this issue Aug 19, 2018 · 0 comments

Comments

@n0b0dyCN
Copy link

Hi, I arrange my folder as following:

├── docker-compose.yml
├── html
│   ├── akamai-logo.png
│   ├── geo.html
│   ├── gzip.html
│   ├── index.html
│   ├── sample.html
│   ├── style.css
│   ├── test.txt
│   └── version.txt
└── nginx-gzip
    └── Dockerfile

And my docker-compose.yml:

version: '2' # older version for broader compat
services:
  ets:
    image: "akamaiesi/ets-docker:latest"
    environment:
        - ETS_CLI_ARGS=--remote_origin origin:9001 --debug origin
    links:
      - origin
    ports:
        - "9000:80"
  origin:
    build: nginx-gzip
    image: "nginx-gzip"
    ports:
        - "127.0.0.1:9001:80"
    volumes:
      - ./html:/usr/share/nginx/html

When I run docker-compose up and visit 127.0.0.1:9000/geo.html, I got a 404 error and seems that the request is not passed to nginx docker. Do I make any mistakes when I use the docker?

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

No branches or pull requests

1 participant