https://github.com/Dingensen/GeoSoft2_Gruppe2
45
https://github.com/Dingensen/GeoSoft2_Gruppe2
see also: geomergency-plumber
create a directory ./geomergency
create ./geomergency/docker-compose.yml with the contents
version: '3'
services:
app:
container_name: geomergency-app
# restart: always
image: dingensen/geomergency-app:1.0
build: .
# stdin_open: true
# tty: true
ports:
- '3000:3000'
links:
- mongo
volumes:
- ./configs:/usr/src/app/configs
mongo:
container_name: geomergency-mongo
restart: always
image: mongo
ports:
- '27017:27017'
# volumes:
# - ./data:/data
plumber:
container_name: geomergency-plumber
image: dingensen/geomergency-plumber:1.0
build: .
ports:
- '8000:8000'
links:
- app
./geomergency/configs/config.yml containing the configuration files for the server#tweet-scraper parameters
#TEMPLATE FILE
# copy this file, name it "config.yaml" and insert the given keys into the given parameters.
# double check that "config.yaml" is in .gitignore and .dockerignore
# DO NOT PUBLISH ANY TOKENS ON GITHUB
# if you do, please notify us before resetting the tokens.
# twitter tokens
tokens:
twitter:
consumer_key: "KEY HERE"
consumer_secret: "KEY HERE"
access_token_key: "KEY HERE"
access_token_secret: "KEY HERE"
#the standard parameters for the stream, the server is caching it's tweets from
tweetParams:
#bounding box of enclosed area.
# WGS84: "WEST,SOUTH,EAST,NORTH"
locations: "5.00,47.15,15.20,55.22"
#track params can only be up to 60 bytes
track: "klima, regen, sturm, unwetter, hilfe"
# weather scraper parameters
weatherParams:
weatherUpdateInterval: 300000
note: insert your twitter api-keys at the given tags
run docker-compose up
access the site on localhost:3000/geomergency
Content type
Image
Digest
Size
409.4 MB
Last updated
almost 7 years ago
docker pull dingensen/geomergency-app:1.0