Spring Boot application that serves forecast data from the AEMET API.
332
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'
docker pull marcguillemdev/aemet-marc-backend:latest