docker-training icon indicating copy to clipboard operation
docker-training copied to clipboard

Add example: docker compose - run multiple instances on different ports

Open ondrejsika opened this issue 1 year ago • 0 comments

version: '3.8'
services:
  example0: &example
    image: sikalabs/hello-world-server
    environment:
      TEXT: Hello Docker Training!
    ports:
      - 8000:8000
  example1:
    <<: *example
    ports:
      - 8001:8000
  example2:
    <<: *example
    ports:
      - 8002:8000

ondrejsika avatar Jun 21 '23 08:06 ondrejsika