Logo

Programa FullCycle de Aceleração: Edição Docker

About The Project

Built With

(back to top)

Getting Started

Prerequisites

  • docker

STEPS

  1. Create a docker network
    docker network create pfa
  2. creater a node js docker image
    docker build -t marcelowis/pfa-node .
  3. creater a nginx docker image
    docker build -t marcelowis/pfa-nginx .
  4. run the container with name nodecontainer
    docker run -d --network=pfa --name=nodecontainer marcelowis/pfa-node
  5. run the container with name nodecontainer
    docker run -d --network=pfa -p 8080:80 marcelowis/pfa-nginx

(back to top)