Examples
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?
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?
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