-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
108 lines (98 loc) · 2.7 KB
/
docker-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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.9"
services:
web:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend/backend_apps:/usr/src/app
- media:/usr/src/app/media
env_file:
- ./backend/backend_apps/.env.sample
# command: uvicorn server.asgi:application --workers 4
depends_on:
- db
react:
container_name: frontend
build:
context: ./frontend_GUI
volumes:
- ./frontend_GUI/gui:/usr/src/app
expose:
- 3000
environment:
- REACT_APP_AXIOS_URL=http://127.0.0.1
depends_on:
- web
db:
container_name: database
image: arm64v8/postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- backend/backend_apps/.env.sample
tfserving_classifier_hsv:
container_name: tfserving_classifier_hsv
image: emacski/tensorflow-serving:2.5.1
volumes:
- ./algorithms_HSV/HSV_Model:/models/model
ports:
- "8501:8501"
depends_on:
- web
tfserving_classifier_ssim:
container_name: tfserving_classifier_ssim
image: emacski/tensorflow-serving:2.5.1
volumes:
- ./algorithms_SSIM/SSIM_Model:/models/model
ports:
- "8502:8501"
depends_on:
- web
nginx:
container_name: nginx
restart: always
build: ./nginx
volumes:
- media:/usr/src/app/media
ports:
- "80:80"
depends_on:
- react
redis:
container_name: redis
image: "redis:6.2.6-alpine"
celery:
container_name: celery
build:
context: ./backend
command: celery -A server worker --without-heartbeat --without-gossip --without-mingle
volumes:
- media:/usr/src/app/media
- ./backend/backend_apps:/usr/src/app
env_file:
- backend/backend_apps/.env.sample
depends_on:
- redis
flower:
container_name: flower
build: ./backend
command: celery -A server flower -l INFO
ports:
- "5556:5555"
environment:
- FLASK_DEBUG=1
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
volumes:
- ./backend/backend_apps:/usr/src/app
env_file:
- backend/backend_apps/.env.sample
depends_on:
- celery
- web
- react
volumes:
postgres_data:
media: