doc.dev1x.org

http-echo

概要

http-echoをDockerで動かしてみる

コンテナ作成

docker-compose.yaml

version: '3.7'
services:
  http-echo:
    image: hashicorp/http-echo:latest
    container_name: http-echo
    command: ['-text', 'Hello World', '-listen', ':8080']
    ports:
      - 8080:8080

コンテナ起動

docker-compose up -d