
![]()
Documentation: https://github.com/iperfex-team/apirest/wiki Source: https://github.com/iperfex-team/apirest.git
https://github.com/iperfex-team/apirest/wiki/Docker-Install
| Arguments | Description |
|---|---|
| LOG | Modo debug true or false |
| SERVERPORT | Assigned port of the application. By default 8080 |
| SERVERHOST | IP to which he hears the requests. By default 0.0.0.0 |
| MYSQL_HOST | MYSQL Server Host |
| MYSQL_PORT | MYSQL Server Port |
| MYSQL_USER | MYSQL Server User |
| MYSQL_PASS | MYSQL Server Pass |
| MYSQL_DATABASE | MYSQL Server Database |
| TTS_IPERFEX | Audio creation when inserting a record with the contact method with attributes. By default false |
| TTS_HOST | IPERFEX TTS Host. By default https://tts.iperfex.com/admin |
| TTS_USER | IPERFEX TTS User |
| TTS_PASS | IPERFEX TTS Pass |
| TTS_VOICE | IPERFEX TTS Voice. By default Paulina |
| TTS_RATIO | IPERFEX TTS Ratio. By default 170 |
| SSH_HOST | SSH Host |
| SSH_PORT | SSH Port |
| SSH_USER | SSH User |
| SSH_PASS | SSH Pass |
mkdir -p /opt/iperfex/
cat > /opt/iperfex/ENV <<ENDLINE
LOG=false
SERVERPORT=8080
SERVERHOST=0.0.0.0
MYSQL_HOST=192.168.1.10
MYSQL_PORT=3306
MYSQL_USER=isurveyx_us
MYSQL_PASS=xxxxxxxxxxx
MYSQL_DATABASE=isurveyx
TTS_IPERFEX=false
TTS_HOST=https://tts.iperfex.com
TTS_USER=myuser
TTS_PASS=mypass
TTS_VOICE=Paulina
TTS_RATIO=170
SSH_HOST=192.168.1.11
SSH_PORT=22
SSH_USER=root
SSH_PASS=xxxxxxxxxx
ENDLINE
docker pull iperfex/apirest:2.0
docker run --name apirest_app -itd --env-file ./ENV -p 0.0.0.0:8080:8080/tcp iperfex/apirest:2.0
docker run --name apirest_app -itd --net=host --env-file ./ENV iperfex/apirest:2.0
wget https://raw.githubusercontent.com/iperfex-team/apirest/master/apirest.service -O /etc/systemd/system/apirest.service
systemctl enable apirest
systemctl start apirest
bash -c "clear && docker exec -it apirest_app bash"
Content type
Image
Digest
Size
214.6 MB
Last updated
about 8 years ago
docker pull iperfex/apirest:2.0