forked from openclimatefix/open-source-quartz-solar-forecast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (40 loc) · 1004 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
x-shared_environment: &shared_environment
LOG_LEVEL: ${LOG_LEVEL:-info}
services:
open-meteo-api:
image: ghcr.io/open-meteo/open-meteo
container_name: open-meteo-api
ports:
- "8080:8080"
command: serve
volumes:
- data:/app/data
restart: always
environment:
<<: *shared_environment
open-meteo-sync:
image: ghcr.io/open-meteo/open-meteo
container_name: open-meteo-sync
command: sync ${OPEN_METEO_MODELS} ${OPEN_METEO_VARIABLES} --past-days ${OPEN_METEO_MAX_AGE_DAYS} --repeat-interval ${OPEN_METEO_REPEAT_INTERVAL} --concurrent ${OPEN_METEO_CONCURRENT}
volumes:
- data:/app/data
restart: always
environment:
<<: *shared_environment
web:
build:
context: .
dockerfile: Dockerfile
container_name: fastapi-app
ports:
- "8000:8000"
env_file:
- .env
volumes:
- .:/app
depends_on:
- open-meteo-api
- open-meteo-sync
restart: always
volumes:
data: