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.

Revisions

  1. erickvictor created this gist Oct 14, 2019.
    20 changes: 20 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    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"