I have a following question related to running images prepated by docker-compose.
Assuming that the compose file shares some ports (and does propper mapping) then while running the image with docker, do I need to list (again) same ports as in the compose file using the “-p” parameter?
Hello @mcgiwer
If you are using the docker compose example from our website the ports mapping are included in the composer yaml file and you do not need to use “-p” option:
networks:
axi-network:
driver: bridge
services:
axigen:
image: axigen/axigen
ports:
- "80:80"
- "443:443"
- "993:993"
- "995:995"
- "25:25"
- "465:465"
- "7000:7000"
- "9000:9000"
- "9443:9443"
volumes:
- "<volume>:/axigen/var"
networks:
- axi-network
And start the the container using:
docker compose up