Skip to content

installation: Docker

Dingensen edited this page Jan 29, 2020 · 4 revisions

geomergency-app

https://github.com/Dingensen/GeoSoft2_Gruppe2

see also: geomergency-plumber

how to use:

  • 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

  • create ./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


alternatively the docker-images may be created from scratch from the docker-branch. for that execute

docker build -t geomergency-app . and

docker build -t geomergency-plumber ./plumber-docker

inside the home directory of the branch

Clone this wiki locally