Computer scienceSystem administration and DevOpsDockerDocker Compose

Docker-compose.yml syntax

Port mapping: Docker Compose service

Report a typo

Complete the missing line of code to map port 8080 on the host to port 80 in the container for a service named "web" in Docker Compose.

version: "3"

services:
  web:
    image: nginx:latest
    ports:
      - <missing code line>
Enter a short text
___

Create a free account to access the full topic