-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhelp.sh
22 lines (16 loc) · 763 Bytes
/
help.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Build
docker build -t reverse-proxy-for-free-basics .
docker run --name proxy-inclusao-etica-ai -p 8080:80 -d reverse-proxy-for-free-basics
# Parar o conteiner e apagar
docker rm -f proxy-inclusao-etica-ai
# Apagar imagem do conteiner (use para rebuildar)
docker rmi proxy-inclusao-etica-ai
# Apenas para testar inclusao.etica.ai com um subdominio fake
# Com isso eu posso acessar http://rp4fb.inclusao.etica.ai ou http://rp4fb.inclusao.etica.ai:8080/
# e tentará acessar https://inclusao.etica.ai
# sudo vim /etc/hosts
127.0.0.1 rp4fb.inclusao.etica.ai
# Full drill
docker rm -f proxy-inclusao-etica-ai && \
docker build -t reverse-proxy-for-free-basics . && \
docker run --name proxy-inclusao-etica-ai -p 8080:80 reverse-proxy-for-free-basics