I am using docker for windows and have a docker compose file that is creating a couple of customer applications as well as a RabbitMq and a Seq container. These are all talking to each other via instance names on the local network created by docker-compose
, for example;
version: '3.4'
services:
legacydata.workerservice:
container_name: legacydata.workerservice
image: ${DOCKER_REGISTRY-}legacydataworkerservice
build:
context: .
dockerfile: LegacyData.Worker/Dockerfile
depends_on:
- rabbitmq
legacydata.consumer:
container_name: legacydata.consumer
image: ${DOCKER_REGISTRY-}legacydataconsumer
build:
context: .
dockerfile: LegacyData.Consumer/Dockerfile
depends_on:
- rabbitmq
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
environment:
- RABBITMQ_ERLANG_COOKIE='secretcookie'
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
ports:
- 5672:5672
- 15672:15672
## Move Seq to Azure ACI
# seq:
# image: datalust/seq:latest
# container_name: seq
# ports:
# - 5341:80
# environment:
# ACCEPT_EULA: Y
I want move the Seq instance into Azure ACI (I have this running and I can access it as expected for example http://myseq.southuk.azurecontainer.io).
How do I configure the docker to allow my local containers to access both each other, and internet resources?