Question from the Docker compose test

Connect a service to a network in Docker Compose

Archived

Consider the following content in a docker-compose.yml :

services:
  web:
    image: nginx
    networks:
      - mynet
networks:
  mynet:
    driver: bridge

What does the networks field do under the web service?

Author: AxelStatus: Archived(New question!)Question passed 20 times
0
Community EvaluationsNo one has reviewed this question yet, be the first!