forked from LaconicNetwork/kompose
kompose fails if compose file declares different protocols for the same port. eg;
...
ports:
- 666:666/udp
- 666:666/tcp
...
This PR adds the port to the output and also makes sure that names are unique for each port/protocol pair.
This is supported with LoadBalancer (kubernetes/kubernetes#2995) so trying to use this config with LB panics.
22 lines
321 B
YAML
22 lines
321 B
YAML
version: "2"
|
|
|
|
services:
|
|
web:
|
|
image: tuna/docker-counter23
|
|
ports:
|
|
- "5000:5000/tcp"
|
|
links:
|
|
- redis
|
|
networks:
|
|
- default
|
|
|
|
redis:
|
|
image: redis:3.0
|
|
networks:
|
|
- default
|
|
ports:
|
|
- "6379/tcp"
|
|
- "6379/udp"
|
|
- "1234:1235/udp"
|
|
|