Sign inSign up

sator18/weather-watch

By sator18

•Updated almost 2 years ago

Retrieves weather data based on geolocation and stores the data in a influxdbv2 database.

Image
Monitoring & observability
0

355

sator18/weather-watch repository overview

⁠Running the Container in a Pod

INFLUXDB_URL=http://localhost:8086
INFLUXDB_TOKEN=a_secure_admin_token
INFLUXDB_ORG=swamp
INFLUXDB_BUCKET=weather
POSTGRES_URL=postgres://postgres:postgres@localhost:5432/landmarks?sslmode=disable
CRON="0 * * * * *"
LOGFORMAT=text
LOGLEVEL=TRACE

podman run \
    --pod ${POD} \
    --requires postgresql \
    --requires influx \
    --detach \
    --name ${POD}-bot \
    --env "INFLUXDB_URL=http://tsdb:8086" \
    --env "INFLUXDB_TOKEN=${INFLUXDB_ADMIN_TOKEN}" \
    --env "INFLUXDB_ORG=${INFLUXDB_ORG}" \
    --env "INFLUXDB_BUCKET=${INFLUXDB_BUCKET}" \
    --env "POSTGRES_URL=postgres://postgres:postgres@pgdb:5432/landmarks?sslmode=disable&application_name=weather-bot" \
    --env "CRON=0 * * * * *" \
    --env "LOGFORMAT=${LOGFORMAT}" \
    --env "LOGLEVEL=${LOGLEVEL}" \
    --network webot \
    docker.io/sator18/weather-watch:latest # /usr/bin/weather-watch

Tag summary

Content type

Image

Digest

sha256:e7819e7ec…

Size

9 MB

Last updated

almost 2 years ago

docker pull sator18/weather-watch