Skip to content

Instantly share code, notes, and snippets.

@jun06t
Last active June 27, 2018 00:37
Show Gist options
  • Select an option

  • Save jun06t/d4f786e41dbb5a78e041810ddf89ea8c to your computer and use it in GitHub Desktop.

Select an option

Save jun06t/d4f786e41dbb5a78e041810ddf89ea8c to your computer and use it in GitHub Desktop.

Revisions

  1. jun06t revised this gist Jun 27, 2018. No changes.
  2. jun06t created this gist Jun 27, 2018.
    44 changes: 44 additions & 0 deletions front-proxy-docker-compose
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    version: '2.4'
    services:

    gateway:
    build:
    context: .
    dockerfile: Dockerfile-gateway
    networks:
    - front-proxy
    expose:
    - "3000"
    ports:
    - "3000:3000"
    environment:
    - ENDPOINT=front-proxy:8000

    front-envoy:
    build:
    context: .
    dockerfile: Dockerfile-frontenvoy
    container_name: front-proxy
    volumes:
    - ./front-envoy.yaml:/etc/front-envoy.yaml
    networks:
    - front-proxy
    expose:
    - "8000"
    - "8001"
    ports:
    - "8001:8001"

    grpc:
    build:
    context: .
    dockerfile: Dockerfile-grpc
    networks:
    front-proxy:
    aliases:
    - backend
    expose:
    - "8080"

    networks:
    front-proxy: {}