Docker Community Forums

Share and learn in the Docker community.

How to launch a docker bundle with exposed ports?


(Cohenaj194) #1

So I have tried to create a simple docker bundle from the following docker-compose.yml

version: "2"
services:
  web:
    image: cohenaj194/apache-simple
    ports:
      - 32701:80
  nginx:
    image: nginx
    ports:
      - 32700:80

But the ports of the docker services this bundle created were not exposed and I could not access any of the containers in my services through ports 32700 or 32701 as I specified it in thedocker-compose.yml. How am I supposed to expose the ports of docker bundle services?