podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

Examples

Open RobertBerger opened this issue 5 years ago • 2 comments

We have included fully functional sample stacks inside examples/ directory.

A quick example would be

cd examples/busybox
podman-compose up

OK so far so good.

But what are we expecting to see?

Two containers running?

busybox with some httpd running which exposed on port 8080 and redis exposing 6379.

And they linked internally.

So internally one could access the other.

Does it?

Can you please elaborate a bit more on the test case?

Should I be able to access 8080 from some outside network and be able to see something there?

RobertBerger avatar Feb 08 '21 13:02 RobertBerger

This is what I see on the host:

# netstat -tuln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0      0 0.0.0.0:49155           0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:49156           0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:5355            0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.1:37715         0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      
udp        0      0 127.0.0.53:53           0.0.0.0:*                           
udp        0      0 0.0.0.0:5355            0.0.0.0:*                      

Is this expected?

RobertBerger avatar Feb 08 '21 13:02 RobertBerger

Well there is no port 8080 exposed, since the syntax in the example is wrong in case you wanted to do this:

it should be

8080:8080

RobertBerger avatar Feb 08 '21 14:02 RobertBerger