Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 531 Bytes

docker-compose.md

File metadata and controls

29 lines (22 loc) · 531 Bytes

docker-compose

2 step process:

  • Write docker-compose file describing all the containers
  • Run docker-compose file

Writing compose file

This is simple example of how docker-compose.yaml file should look.

version: "3.7"
services:
    webserver:
        image: "ubuntu:latest"
        // build: .
        ports:
            - "8080:8080"
            - "8888:8888"
        volumes:
            - "my-folder:/workspace/my-folder"

Running container

docker-compose -f docker-compose.yaml up