-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME-DOCKER.txt
35 lines (26 loc) · 968 Bytes
/
README-DOCKER.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
RODAR 1 VEZ PARA FAZER A BUILD
*SE INSTALAR LIBS NOVAS, RODAR DE NOVO*
docker-compose up --build
OU ISSO PARA UM CONTAINER ESPECIFICO
docker build -t descubra .
RODAR CONTAINERES TODOS
docker-compose up
RODAR O CONTAINER ESPECIFICO
docker run -d -p 3000:3000 descubra
SAIR DO CONTAINER
- SE RODOU COM -d
docker rm descubra
- SE RODOU SEM -d
ctrl + D
MODULOS EXTRAS JA INSTALADOS NO NODE
MaterializeReact https://materializecss.com/getting-started.html
Interface Postrgres https://node-postgres.com/
- Quando for conectar no banco, colocar 'db' como host, pois ja esta linkado com o container do postgres
------------------------------------
RODAR CONTAINER ESPECIFICANDO O NOME
docker run --name nome_que_voce_quer nome_da_imagem(ex:postgres:10)
RODAR LINKANDO 2 CONTAINERES
docker run -it --link nome_do_container_a_ser_linkado:nome_dado nome_da_imagem
-------------------------------------
NO WINDOWS:
192.168.99.100