Computer scienceSystem administration and DevOpsDockerDocker Compose

Services and their attributes

Volume mounting in Compose

Report a typo

In a Docker Compose file, how can you define a volume to mount the local directory ./backend directory to the /usr/nginx container directory for the backend service?

version: '3'

services:
  backend:
    image: myapp-backend:latest
Enter a short text

Create a free account to access the full topic