view docker-compose.yml @ 0:568ffe87c352

impl docker-compose go-grpc project example https://tech.libinc.co.jp/entry/2019/11/07/111548
author anatofuz
date Mon, 16 Dec 2019 19:19:32 +0900
parents
children 23093c66c615 c57b5d53a71f
line wrap: on
line source

version: '3.7'  
  
services:  
  server:  
    build: .  
    container_name: "server"  
    ports:  
      - 1234:1234  
    volumes:  
      - .:/study-grpc  
    command: bash scripts/server.sh
    tty: true
  client:
    build: .
    container_name: "client"  
    environment:
      SERVER: server:1234
    volumes:  
      - .:/study-grpc  
    command: bash scripts/client.sh
    tty: true