-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
63 lines (57 loc) · 1.32 KB
/
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
services:
redis:
image: redis:8.0-M02-alpine
ports:
- 6379:6379
volumes:
- ./configs/redis:/usr/local/etc/redis
- ./volumes/redis:/data
command: redis-server /usr/local/etc/redis/redis.conf
mongo:
image: mvertes/alpine-mongo:4.0.6-1
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 12345678
ports:
- 27017:27017
volumes:
- ./volumes/mongo:/data/db
# frontend:
# build: ./services/frontend
# ports:
# - 8000:8080
# environment:
# - SERVER_PORT=8080
# - BACKEND_ADDRESS=127.0.0.1:8080
backend:
build: ./services/backend
restart: always
ports:
- 8010:8080
environment:
- SERVER_PORT=8080
- ML_ADDRESS=ml:8000/predict
- REDIS_ADDRESS=redis:6379
ml:
build: ./services/ml
restart: always
ports:
- 8011:8000
environment:
- SERVER_PORT=8000
# - MONGO_ADDRESS=mongo:27017
# - MONGO_USER=root
# - MONGO_PASSWORD=12345678
volumes:
- ./volumes/models:/app/models
# ml-edu:
# build: ./services/ml-edu
# ports:
# - 8012:8080
# environment:
# - MONGO_ADDRESS=mongo:27017
# - MONGO_USER=root
# - MONGO_PASSWORD=12345678
# volumes:
# - ./volumes/models:/app/models