docker-ngrok icon indicating copy to clipboard operation
docker-ngrok copied to clipboard

Nginx is showing always after generating ngrok url

Open ezekel opened this issue 5 years ago • 0 comments

Hi need some help please, after I added the image of wernight/ngrok, I rebuild my docker, when it goes up

I run this

docker run --rm -it --network myapp_default --link webcontainer wernight/ngrok ngrok http webcontainer:80

but when it generates the link of ngrok

when I click on it will display nginx index page it says successfully installed nginx.

normally when I run my app, I use myapp.local because I used windows hostfile

please help

Thank you in advance


version: "3.8"
services:

  web:
    image: nginx:stable
    container_name: webcontainer
    ports:
      - "80:80"
    volumes:
      - ./:/var/www/myapp
    expose:
      - 9000
    external_links:
      - php
      - db
  ngrok:
    image: wernight/ngrok
    links:
      - web
    ports:
      - "4040:4040"
    env_file: .env
    environment:
      NGROK_PORT: web:80

ezekel avatar Jan 14 '21 09:01 ezekel