Avatar of Simon Leung
Simon Leung
 asked on

Docker compose file

Inside the docker compose file, I see there is backend or frontend in "networks" keyword. What does it use for ? Do I need to setup backend and frontend network ?

Thx
DockerUbuntuLinuxLinux OS DevLinux Distributions

Avatar of undefined
Last Comment
ssvl

8/22/2022 - Mon
ssvl

Those are place holder options for your isolated network configs eg:- 

version: "3"
services:

  proxy:
    build: ./proxy
    networks:
      - frontend
  app:
    build: ./app
    networks:
      - frontend
      - backend
  db:
    image: postgres
    networks:
      - backend

networks:
  frontend:
    # Use a custom driver
    driver: custom-driver-1
  backend:
    # Use a custom driver which takes special options
    driver: custom-driver-2
    driver_opts:
      foo: "1"
      bar: "2

Open in new window


Simon Leung

ASKER
backend:    
 # Use a custom driver which takes special options    
driver: custom-driver- 2

What does custom-driver mean ? Is it a driver file in particular folder in Linux ?


ASKER CERTIFIED SOLUTION
ssvl

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61