Unify docker restart policy among docs and example files.
This commit is contained in:
@@ -72,7 +72,7 @@ If you're using Docker, getting started is as simple as running the following co
|
|||||||
> See [docker/example.omnibus.docker-compose.yml](https://github.com/AnalogJ/scrutiny/blob/master/docker/example.omnibus.docker-compose.yml) for a docker-compose file.
|
> See [docker/example.omnibus.docker-compose.yml](https://github.com/AnalogJ/scrutiny/blob/master/docker/example.omnibus.docker-compose.yml) for a docker-compose file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it --rm -p 8080:8080 -p 8086:8086 \
|
docker run -p 8080:8080 -p 8086:8086 --restart unless-stopped \
|
||||||
-v `pwd`/scrutiny:/opt/scrutiny/config \
|
-v `pwd`/scrutiny:/opt/scrutiny/config \
|
||||||
-v `pwd`/influxdb2:/opt/scrutiny/influxdb \
|
-v `pwd`/influxdb2:/opt/scrutiny/influxdb \
|
||||||
-v /run/udev:/run/udev:ro \
|
-v /run/udev:/run/udev:ro \
|
||||||
@@ -103,17 +103,17 @@ other Docker images:
|
|||||||
> See [docker/example.hubspoke.docker-compose.yml](https://github.com/AnalogJ/scrutiny/blob/master/docker/example.hubspoke.docker-compose.yml) for a docker-compose file.
|
> See [docker/example.hubspoke.docker-compose.yml](https://github.com/AnalogJ/scrutiny/blob/master/docker/example.hubspoke.docker-compose.yml) for a docker-compose file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -p 8086:8086 \
|
docker run -p 8086:8086 --restart unless-stopped \
|
||||||
-v `pwd`/influxdb2:/var/lib/influxdb2 \
|
-v `pwd`/influxdb2:/var/lib/influxdb2 \
|
||||||
--name scrutiny-influxdb \
|
--name scrutiny-influxdb \
|
||||||
influxdb:2.2
|
influxdb:2.2
|
||||||
|
|
||||||
docker run --rm -p 8080:8080 \
|
docker run -p 8080:8080 --restart unless-stopped \
|
||||||
-v `pwd`/scrutiny:/opt/scrutiny/config \
|
-v `pwd`/scrutiny:/opt/scrutiny/config \
|
||||||
--name scrutiny-web \
|
--name scrutiny-web \
|
||||||
ghcr.io/analogj/scrutiny:master-web
|
ghcr.io/analogj/scrutiny:master-web
|
||||||
|
|
||||||
docker run --rm \
|
docker run --restart unless-stopped \
|
||||||
-v /run/udev:/run/udev:ro \
|
-v /run/udev:/run/udev:ro \
|
||||||
--cap-add SYS_RAWIO \
|
--cap-add SYS_RAWIO \
|
||||||
--device=/dev/sda \
|
--device=/dev/sda \
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ version: '2.4'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
influxdb:
|
influxdb:
|
||||||
|
restart: unless-stopped
|
||||||
image: influxdb:2.2
|
image: influxdb:2.2
|
||||||
ports:
|
ports:
|
||||||
- '8086:8086'
|
- '8086:8086'
|
||||||
@@ -15,6 +16,7 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
|
restart: unless-stopped
|
||||||
image: 'ghcr.io/analogj/scrutiny:master-web'
|
image: 'ghcr.io/analogj/scrutiny:master-web'
|
||||||
ports:
|
ports:
|
||||||
- '8080:8080'
|
- '8080:8080'
|
||||||
@@ -33,6 +35,7 @@ services:
|
|||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
collector:
|
collector:
|
||||||
|
restart: unless-stopped
|
||||||
image: 'ghcr.io/analogj/scrutiny:master-collector'
|
image: 'ghcr.io/analogj/scrutiny:master-collector'
|
||||||
cap_add:
|
cap_add:
|
||||||
- SYS_RAWIO
|
- SYS_RAWIO
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ version: '3.5'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
scrutiny:
|
scrutiny:
|
||||||
|
restart: unless-stopped
|
||||||
container_name: scrutiny
|
container_name: scrutiny
|
||||||
image: ghcr.io/analogj/scrutiny:master-omnibus
|
image: ghcr.io/analogj/scrutiny:master-omnibus
|
||||||
cap_add:
|
cap_add:
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
influxdb:
|
influxdb:
|
||||||
|
restart: unless-stopped
|
||||||
container_name: influxdb
|
container_name: influxdb
|
||||||
image: influxdb:2.1-alpine
|
image: influxdb:2.1-alpine
|
||||||
ports:
|
ports:
|
||||||
@@ -73,11 +74,11 @@ services:
|
|||||||
- DOCKER_INFLUXDB_INIT_ORG=homelab
|
- DOCKER_INFLUXDB_INIT_ORG=homelab
|
||||||
- DOCKER_INFLUXDB_INIT_BUCKET=scrutiny
|
- DOCKER_INFLUXDB_INIT_BUCKET=scrutiny
|
||||||
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=your-very-secret-token
|
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=your-very-secret-token
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
networks:
|
||||||
- monitoring
|
- monitoring
|
||||||
|
|
||||||
scrutiny:
|
scrutiny:
|
||||||
|
restart: unless-stopped
|
||||||
container_name: scrutiny
|
container_name: scrutiny
|
||||||
image: ghcr.io/analogj/scrutiny:master-web
|
image: ghcr.io/analogj/scrutiny:master-web
|
||||||
ports:
|
ports:
|
||||||
@@ -94,7 +95,6 @@ services:
|
|||||||
- SCRUTINY_NOTIFY_URLS=["http://gotify:80/message?token=a-gotify-token"]
|
- SCRUTINY_NOTIFY_URLS=["http://gotify:80/message?token=a-gotify-token"]
|
||||||
depends_on:
|
depends_on:
|
||||||
- influxdb
|
- influxdb
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
networks:
|
||||||
- notifications
|
- notifications
|
||||||
- monitoring
|
- monitoring
|
||||||
@@ -168,6 +168,7 @@ version: "3.4"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
collector:
|
collector:
|
||||||
|
restart: unless-stopped
|
||||||
image: 'ghcr.io/analogj/scrutiny:master-collector'
|
image: 'ghcr.io/analogj/scrutiny:master-collector'
|
||||||
cap_add:
|
cap_add:
|
||||||
- SYS_RAWIO
|
- SYS_RAWIO
|
||||||
|
|||||||
Reference in New Issue
Block a user