Skip to content

Instantly share code, notes, and snippets.

@erickvictor
Created October 14, 2019 18:52
Show Gist options
  • Select an option

  • Save erickvictor/3898d01b5f4442a300757c8e0b99235f to your computer and use it in GitHub Desktop.

Select an option

Save erickvictor/3898d01b5f4442a300757c8e0b99235f to your computer and use it in GitHub Desktop.
Rails+Postgres+Ngrok
version: '3'
services:
db:
image: postgres
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
ngrok:
image: wernight/ngrok
links:
- "web"
command: "ngrok http web:3000"
ports:
- "4040:4040"
@llpereiras
Copy link
Copy Markdown

Erick, suspeito que as portas do ngrok deveriam ser

3000:4040

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