Updated deploy script

main
Antonio De Lucreziis 2 years ago
parent 709805d722
commit f9ee504d01

@ -50,3 +50,26 @@ and then
# Production # Production
$ go run -v . $ go run -v .
``` ```
### Production with Docker
```bash
$ mkdir buckets.local/
$ cat <<EOF > database.local.json
{
"prefixSize": 2,
"dashboardState": {
"widgets": []
},
"buckets": {},
"api-keys": []
}
EOF
$ cat <<EOF > .env
MODE="development"
HOST=":4000"
ADMIN_PASSWORD="secret"
MONITOR_SCRIPTS_DIR="./scripts"
MONITOR_CACHE_TIMEOUT="5s", time.ParseDuration
EOF
```

@ -19,6 +19,7 @@ docker run -d \
--name "$CONTAINER_NAME" \ --name "$CONTAINER_NAME" \
--restart unless-stopped \ --restart unless-stopped \
-p "$HOST_PORT:4000" \ -p "$HOST_PORT:4000" \
--privileged \
-v /proc:/proc \ -v /proc:/proc \
-v /dev:/dev \ -v /dev:/dev \
-v "$(pwd)/buckets.local:/buckets" \ -v "$(pwd)/buckets.local:/buckets" \

Loading…
Cancel
Save