-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (64 loc) · 1.48 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
version: "3.9"
services:
redis: # This for storing cache
image: "redis:alpine"
hostname: redis
ports:
- 6379:6379
logging:
driver: none
db:
image: postgres:12-alpine
volumes:
- ./db:/var/lib/postgresql/data
env_file:
- backend/.env
ports:
- 5432:5432
logging:
driver: none
backend: # This service that serves the api for regression and classification
build: backend
entrypoint: ./entrypoint.sh
image: app-backend
volumes:
- ./backend:/app
ports:
- "8000:8000"
env_file:
- backend/.env
depends_on:
- db
- redis
stdin_open: true # for testing
tty: true # for testing
celery: # This is the service that runs the background tasks. example: pycaret setup.
build: backend
command: python manage.py celery
image: app-backend
volumes:
- ./backend:/app
env_file:
- backend/.env
stdin_open: true # for testing
tty: true # for testing
depends_on:
- redis
- db
flower: # This the service which show the running and stale task information.
build: backend
command: celery -A backend flower -l INFO --port=5566 --broker=redis://redis:6379/1
image: app-backend
volumes:
- ./backend:/app
env_file:
- backend/.env
ports:
- "5566:5566"
stdin_open: true # for testing
tty: true # for testing
depends_on:
- redis
- celery
logging:
driver: none