Requirement:
setup of docker instances based on Ubuntu 14.04 where 1 instance acts like a gateway for network traffic to all others...
Create a docker compose file for such a setup...
All these instances need to on their own dedicated docker network and the default docker bridge...
Created a Dockerfile
FROM ubuntu:14.04
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["/bin/bash"]
docker-compose.yml
version: '3'
services:
main:
image: testenginer_main
tty: true
first:
image: testenginer_main
tty: true
where testenginer_main is image file which I generated using Dockerfile setup
I checked both Instance are up and running
Issue is I want to have 2 Network 1 which connects to docker's default bridge network and 2nd connected to other containers so other containers can access main network through network 1