Answer the question
In order to leave comments, you need to log in
How to bind ports with docker compose?
docker-compose.yml
version: "2"
services:
rabbitMq:
container_name: rabbit
image: rabbitmq:3-management
environment:
RABBITMQ_DEFAULT_PASS: pass
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_VHOST: vhost
networks:
mynet:
ipv4_address: 172.20.0.4
ports:
- "15672:80"
networks:
mynet:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24
gateway: 172.20.0.254
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question