You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
-------------------
|
|
|
|
|
SIMPLESIP
|
|
|
|
|
-------------------
|
|
|
|
|
## BUILD IMAGE
|
|
|
|
|
docker image build -t simplesip .
|
|
|
|
|
|
|
|
|
|
-------------------
|
|
|
|
|
APLICA<EFBFBD><EFBFBD>O
|
|
|
|
|
-------------------
|
|
|
|
|
## BUILD IMAGE ##
|
|
|
|
|
docker image build -t aplicativo .
|
|
|
|
|
|
|
|
|
|
RUN CONTAINER
|
|
|
|
|
ENV VAR:
|
|
|
|
|
DB_PORT -> PORTA DO BANCO DE DADOS
|
|
|
|
|
DB_HOST -> DOMINIO DO SERVIDOR
|
|
|
|
|
DB_BASE -> NOME DA BASE DADOS
|
|
|
|
|
DB_PASSWD -> SENHA DO USUARIO DE ACESSO AO BANCO DE DADOS
|
|
|
|
|
WHATSAPP_TOKEN -> TOKEN DE AUTENTICA<EFBFBD><EFBFBD>O NA API DO PROVEDOR
|
|
|
|
|
WHATSAPP_NUMBER -> C<EFBFBD>DIGO DE CONFIGURA<EFBFBD><EFBFBD>O DO N<EFBFBD>MERO DO WHATSAPP
|
|
|
|
|
WHATSAPP_PROVIDER (positus, twilio) -> NOME DO PROVEDOR A SER USADO
|
|
|
|
|
|
|
|
|
|
docker run -d --name aplicativo -p 8080:80 -e DB_PORT=5433 -e DB_HOST=192.168.115.240 -e DB_BASE=pbx -e DB_USER=contacte -e DB_PASSWD=ctepgSQL -e WHATSAPP_TOKEN= -e WHATSAPP_NUMBER= aplicativo
|
|
|
|
|
|
|
|
|
|
--------------------
|
|
|
|
|
BANCO DE DADOS
|
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
## BUILD IMAGE ##
|
|
|
|
|
docker image build -t simplesip-postgres .
|
|
|
|
|
## RUN CONTAINER ##
|
|
|
|
|
docker run --name simplesip-postgres --privileged -e POSTGRES_DB=pbx -e POSTGRES_USER=contacte -e POSTGRES_PASSWORD=ctepgSQL -p 5433:5432 -d simplesip-postgres
|
|
|
|
|
|
|
|
|
|
--------------------
|
|
|
|
|
PORTAINER
|
|
|
|
|
--------------------
|
|
|
|
|
@doc https://docs.portainer.io/v/ce-2.11/start/install/server/docker/linux
|
|
|
|
|
CREATE VOLUME ##
|
|
|
|
|
docker volume create portainer_data
|
|
|
|
|
docker run -d -p 9000:9000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.11.1
|