fix: readme

This commit is contained in:
Davidson Gomes
2023-06-12 13:35:47 -03:00
parent 5759341c52
commit 1efe7f7cde
6 changed files with 57 additions and 24 deletions

15
docker.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
NET='evolution-net'
IMAGE='evolution/api:local'
if !(docker network ls | grep ${NET} > /dev/null)
then
docker network create -d bridge ${NET}
fi
sudo mkdir -p /data/instances
docker build -t ${IMAGE} .
docker run -d --restart 'always' --name 'evolution_api' --mount 'type=bind,source=/data/instances,target=/evolution/instances' --publish '8083:8083' --hostname 'evolution' --network ${NET} ${IMAGE}