forked from open-meteo/open-meteo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (32 loc) · 977 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (32 loc) · 977 Bytes
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
# Docker Compose file for running the Open-Meteo API on Docker
# Start with: docker compose up
#
# http://0.0.0.0:8080/v1/forecast?latitude=47.1&longitude=8.6&hourly=temperature_2m&models=icon_global
#
volumes:
open_meteo_database:
x-shared_environment: &shared_environment
LOG_LEVEL: info
services:
open-meteo-sync:
image: ghcr.io/open-meteo/open-meteo
container_name: open-meteo-sync
environment:
<<: *shared_environment
command: sync dwd_icon temperature_2m --past-days 2 --repeat-interval 1 --concurrent 1
volumes:
- open_meteo_database:/app/data
restart: always
open-meteo:
image: ghcr.io/open-meteo/open-meteo
container_name: open-meteo-api
volumes:
- open_meteo_database:/app/data
build:
context: .
environment:
<<: *shared_environment
ports:
- '8080:8080'
user: '0'
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "8080"]