Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.4'
- networks:
- customqueue:
- services:
- feed.api:
- image: feed.api:${TAG:-latest}
- build:
- context: .
- dockerfile: src/Services/Feed/Feed.Api/Dockerfile
- depends_on:
- - sqldata
- - rabbitmq
- ports:
- - "8000:80"
- networks:
- - customqueue
- like.api:
- image: like.api:${TAG:-latest}
- build:
- context: .
- dockerfile: src/Services/Like/Like.Api/Dockerfile
- depends_on:
- - rabbitmq
- ports:
- - "7000:70"
- networks:
- - customqueue
- rabbitmq:
- image: rabbitmq:3-management-alpine
- environment:
- RABBITMQ_DEFAULT_USER: "admin"
- RABBITMQ_DEFAULT_PASS: "password"
- ports:
- - "15672:15672"
- - "5672:5672"
- networks:
- - customqueue
- var factory = new ConnectionFactory()
- {
- HostName = "rabbitmq",
- UserName = "admin",
- Password = "password",
- Port = 15672,
- Protocol = Protocols.DefaultProtocol,
- RequestedConnectionTimeout = 2000,
- VirtualHost = "/",
- };
Add Comment
Please, Sign In to add comment