HUB
Sign inSign up

marcguillemdev/aemet-marc-backend

By marcguillemdev

•Updated over 2 years ago

Spring Boot application that serves forecast data from the AEMET API.

Image
Web servers
Databases & storage
Web analytics
0

332

marcguillemdev/aemet-marc-backend repository overview

Spring Boot application that serves forecast data from the AEMET API. You need the MongoDB database to store information about the municipalities

Docker Compose example file (remember to write an .env file with environment variables):

name: aemet-marc-backend-deploy
services:
  aemet-marc-spring-service:
    image: marcguillemdev/aemet-marc-backend:latest
    restart: on-failure
    ports:
      - "8080:8080"
    environment:
      - MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
      - MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
      - AEMET_API_KEY=${AEMET_API_KEY}
      - CLIENT_ORIGIN=${CLIENT_ORIGIN}
    depends_on:
      - mongo

  mongo:
    image: mongo
    restart: on-failure
    environment:
      MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
      MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
      ME_CONFIG_MONGODB_URL: mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo:27017/
      ME_CONFIG_BASICAUTH: false
    volumes:
      - ./data:/data/db:rw
    ports:
      - '27017:27017'

Tag summary
Recent tags
Content type
Image
Digest
sha256:e5547cce5…
Size
182.3 MB
Last updated
over 2 years ago
docker pull marcguillemdev/aemet-marc-backend:latest