-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (95 loc) · 2.15 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.3"
services:
api:
image: api
build: ./api
command: uvicorn app.api:app --reload --host 0.0.0.0 --port 8000
environment:
- FILES_PATH=/files
- REDIS_DOMAIN=redis
- REDIS_PASSWORD=redis
- DASK_DOMAIN=dask-scheduler
- DASK_PORT=8786
volumes:
- ./api/:/app/
- ./files:/files
ports:
- 8002:8000
depends_on:
- redis
- scheduler
- worker
redis:
image: bitnami/redis:latest
hostname: redis
environment:
- REDIS_PASSWORD=redis
expose:
- 6379
ports:
- 6379:6379
scheduler:
image: scheduler
build: ./dask
hostname: dask-scheduler
environment:
- FILES_PATH=/files
- REDIS_DOMAIN=redis
- REDIS_PASSWORD=redis
depends_on:
- redis
ports:
- 8786:8786
- 8787:8787
command: ["dask-scheduler"]
worker:
image: worker
build:
context: .
dockerfile: ./dask-worker/Dockerfile
depends_on:
- scheduler
- redis
environment:
- FILES_PATH=/files
- REDIS_DOMAIN=redis
- REDIS_PASSWORD=redis
volumes:
- ./api/:/app/
- ./files:/files
command: ["dask-worker", "tcp://dask-scheduler:8786"]
deployer:
image: deployer
build: ./dask-awsdeploy
# this compose section is just for building the
# dask aws deployment code
profiles:
- donotstart
environment:
- FILES_PATH=/files
- REDIS_DOMAIN=redis
- REDIS_PASSWORD=redis
# celery-beat:
# build: ./tasks
# volumes:
# - ./tasks:/app
# - ./files:/files
# entrypoint: celery -A task beat --loglevel=info
# environment:
# - FILES_PATH=/files
# - REDIS_DOMAIN=redis
# - REDIS_PASSWORD=redis
# # depends_on:
# # - api
# celery-worker:
# build: ./tasks
# volumes:
# - ./tasks:/app
# - ./files:/files
# entrypoint: celery -A task worker --loglevel=info
# environment:
# - FILES_PATH=/files
# - REDIS_DOMAIN=redis
# - REDIS_PASSWORD=redis
# depends_on:
# - celery-beat