-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ci.yml
105 lines (97 loc) · 2.32 KB
/
docker-compose.ci.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
103
104
105
version: "3.9"
services:
web:
container_name: backend
image: "${WEB_IMAGE}"
build:
context: ./backend
dockerfile: Dockerfile.prod
cache_from:
- "${WEB_IMAGE_BASE}:latest"
volumes:
- django_static_volume:/usr/src/app/static
- media:/usr/src/app/media
expose:
- 8000
env_file:
- .env
command: gunicorn server.wsgi:application --bind 0.0.0.0:8000 -w 17
react:
image: "${FRONTEND_IMAGE}"
container_name: frontend
build:
context: ./frontend_GUI
dockerfile: Dockerfile.prod
cache_from:
- "${FRONTEND_IMAGE_BASE}:latest"
volumes:
- react_static_volume:/usr/src/app/build/static
expose:
- 3000
command: serve -s build -l 3000
env_file:
- .env
depends_on:
- web
tfserving_classifier_hsv:
build: ./algorithms_HSV
container_name: tfserving_classifier_hsv
image: "${TENSORFLOW_IMAGE_HSV}"
volumes:
- ./algorithms_HSV/HSV_Model:/models/model
ports:
- "8501:8501"
depends_on:
- web
tfserving_classifier_ssim:
build: ./algorithms_SSIM
container_name: tfserving_classifier_ssim
image: "${TENSORFLOW_IMAGE_SSIM}"
volumes:
- ./algorithms_SSIM/SSIM_Model:/models/model
ports:
- "8502:8501"
depends_on:
- web
nginx:
container_name: nginx
restart: always
build:
context: ./nginx
dockerfile: Dockerfile.prod
cache_from:
- "${NGINX_IMAGE_BASE}:latest"
image: "${NGINX_IMAGE}"
volumes:
- django_static_volume:/usr/src/app/django_files/static
- react_static_volume:/usr/src/app/react_files/static
- media:/usr/src/app/media
ports:
- "80:80"
depends_on:
- web
- react
redis:
container_name: redis
image: "redis:alpine"
celery:
image: "${CELERY_IMAGE}"
container_name: celery
build:
context: ./backend
dockerfile: Dockerfile.prod
cache_from:
- "${CELERY_IMAGE_BASE}:latest"
command: celery -A server worker --without-heartbeat --without-gossip --without-mingle
volumes:
- django_static_volume:/usr/src/app/static
- media:/usr/src/app/media
env_file:
- .env
depends_on:
- redis
volumes:
postgres_data:
django_static_volume:
react_static_volume:
media: