mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-25 01:13:28 +01:00
add echo example
This commit is contained in:
parent
4064c84521
commit
2cacf9cfb5
31
examples/echo/README.md
Normal file
31
examples/echo/README.md
Normal file
@ -0,0 +1,31 @@
|
||||
# Echo Service example
|
||||
|
||||
```
|
||||
podman-compose up
|
||||
```
|
||||
|
||||
Test the service with `curl like this`
|
||||
|
||||
```
|
||||
$ curl -X POST -d "foobar" http://localhost:8080/; echo
|
||||
|
||||
CLIENT VALUES:
|
||||
client_address=10.89.31.2
|
||||
command=POST
|
||||
real path=/
|
||||
query=nil
|
||||
request_version=1.1
|
||||
request_uri=http://localhost:8080/
|
||||
|
||||
SERVER VALUES:
|
||||
server_version=nginx: 1.10.0 - lua: 10001
|
||||
|
||||
HEADERS RECEIVED:
|
||||
accept=*/*
|
||||
content-length=6
|
||||
content-type=application/x-www-form-urlencoded
|
||||
host=localhost:8080
|
||||
user-agent=curl/7.76.1
|
||||
BODY:
|
||||
foobar
|
||||
```
|
8
examples/echo/docker-compose.yaml
Normal file
8
examples/echo/docker-compose.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
version: '3'
|
||||
services:
|
||||
web:
|
||||
image: k8s.gcr.io/echoserver:1.4
|
||||
ports:
|
||||
- "${HOST_PORT:-8080}:8080"
|
||||
|
Loading…
Reference in New Issue
Block a user