-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
88 lines (82 loc) · 2.02 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
services:
db:
container_name: mongo
image: mongo:latest
restart: always
ports:
- 27017:27017
volumes:
- database:/data/db
etl-insitu:
container_name: etl-insitu
depends_on:
- db
build:
context: ./air-quality-backend/
dockerfile: Dockerfile.insitu
target: development
environment:
- MONGO_DB_URI=mongodb://mongo:27017
- MONGO_DB_NAME=${MONGO_DB_NAME}
- OPEN_AQ_API_URL=${OPEN_AQ_API_URL}
- OPEN_AQ_API_KEY=${OPEN_AQ_API_KEY}
- CDSAPI_URL=${CDSAPI_URL}
- CDSAPI_KEY=${CDSAPI_KEY}
- STORE_GRIB_FILES=${STORE_GRIB_FILES}
etl-forecast:
container_name: etl-forecast
depends_on:
- db
build:
context: ./air-quality-backend/
dockerfile: Dockerfile.forecast
target: development
environment:
- MONGO_DB_URI=mongodb://mongo:27017
- MONGO_DB_NAME=${MONGO_DB_NAME}
- CDSAPI_URL=${CDSAPI_URL}
- CDSAPI_KEY=${CDSAPI_KEY}
- STORE_GRIB_FILES=${STORE_GRIB_FILES}
volumes:
- data_textures:/app/data_textures
api:
container_name: backend-api
depends_on:
- db
ports:
- 8000:8000
build:
context: ./air-quality-backend/
dockerfile: Dockerfile.api
environment:
- MONGO_DB_URI=mongodb://mongo:27017
- MONGO_DB_NAME=${MONGO_DB_NAME}
entrypoint:
- fastapi
- dev
- ./api/src/main.py
- --host
- 0.0.0.0
volumes:
- ./air-quality-backend/src/:/usr/src/app/src/
ui:
container_name: frontend-ui
depends_on:
- api
ports:
- 5173:5173
build:
context: ./air-quality-ui
dockerfile: Dockerfile
target: development
environment:
- VITE_AIR_QUALITY_API_URL=${VITE_AIR_QUALITY_API_URL}
- VITE_AIR_QUALITY_UI_URL=${VITE_AIR_QUALITY_UI_URL}
volumes:
- ./air-quality-ui/:/app/
- nodemodules:/app/node_modules
- data_textures:/app/data_textures
volumes:
database: {}
nodemodules: {}
data_textures: {}