Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Created January 8, 2019 11:11
Show Gist options
  • Select an option

  • Save shudarshon/54cd7655be8d4fdedce184e8e3f95e45 to your computer and use it in GitHub Desktop.

Select an option

Save shudarshon/54cd7655be8d4fdedce184e8e3f95e45 to your computer and use it in GitHub Desktop.

Revisions

  1. shudarshon created this gist Jan 8, 2019.
    18 changes: 18 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    version: '2'

    services:
    proxy:
    image: jwilder/nginx-proxy
    ports:
    - "80:80"
    volumes:
    - /var/run/docker.sock:/tmp/docker.sock:ro
    environment:
    - DEFAULT_HOST=proxy.example

    webapp:
    image: katacoda/docker-http-server
    ports:
    - "80"
    environment:
    - VIRTUAL_HOST=proxy.example