-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (73 loc) · 1.42 KB
/
docker-compose.yml
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
---
version: '3'
services:
service:
build:
context: ./
dockerfile: ./docker/server/Dockerfile
volumes:
- ./api:/opt/climate-search/api
- ./data:/opt/climate-search/data
ports:
- "8000:8000"
depends_on:
- redis
env_file:
- .env
entrypoint: [
"nohup",
"poetry",
"run",
"uvicorn",
"api.server:app",
"--reload",
"--host",
"0.0.0.0"
]
rq-worker:
build:
context: ./
dockerfile: ./docker/server/Dockerfile
volumes:
- ./api:/opt/climate-search/api
env_file:
- .env
depends_on:
- redis
entrypoint: [
"poetry",
"run",
"rq",
"worker-pool",
"subset",
"preview",
"-n5",
"-u",
"redis://redis-climate-data:6379"
]
jupyter:
build:
context: ./
dockerfile: ./docker/jupyter/Dockerfile
volumes:
- ./api:/opt/climate-search/api
- ./data:/opt/climate-search/data
ports:
- "8888:8888"
env_file:
- .env
# minio:
# build:
# context: ./
# dockerfile: ./docker/minio/Dockerfile
# volumes:
# - ./data:/data
# ports:
# - "9090:9000"
# - "9091:9001"
# environment:
# MINIO_ROOT_USER: ${MINIO_ROOT_USER:-miniouser}
# MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-miniopass}
redis:
container_name: redis-climate-data
image: redis