kompose/script/test/fixtures/same-port-different-proto/docker-compose.yml
S.Çağlar Onur e6ae470830 Allow services to use same port with different protocols
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.
2018-01-17 11:26:03 -08:00

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"