-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.cofee.yml
111 lines (104 loc) · 3.27 KB
/
docker-compose.cofee.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
106
107
108
109
110
111
# Additional dockerfile for starting the CoFee server as well
# To run in production:
# docker-compose -f docker-compose.prod.yml -f docker-compose.cofee.yml up
# Old CoFee server, needed here because it's a separate system
services:
# http://localhost:9081/api
# http://localhost:9081/dashboard
traefik:
image: traefik:v2.9.6
container_name: cofee-traefik
hostname: module-text-cofee-old
restart: unless-stopped
depends_on:
# These components have API endpoints managed by traefik
- load-balancer
- embedding
expose:
- 4999
- 8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./module_text_cofee/traefik.docker.yml:/etc/traefik/traefik.yml
# http://localhost/queueStatus
# http://localhost/submit
# http://localhost/getTask
# http://localhost/sendTaskResult
load-balancer:
image: ghcr.io/ls1intum/athena/load-balancer
container_name: cofee-load-balancer
restart: unless-stopped
expose:
- 8000
# for local debugging:
#ports:
# - 80:8000
env_file:
- ${ATHENA_ENV_DIR:-./env_example}/cofee.env
working_dir: /usr/src/app
volumes:
- ./module_text_cofee/node_config.docker.yml:/config/node_config.docker.yml
labels:
- traefik.enable=true
- traefik.http.routers.balancer.rule=Path(`/queueStatus`,`/submit`,`/getTask`,`/sendTaskResult`)
- traefik.http.routers.balancer.entrypoints=web
segmentation:
image: ghcr.io/ls1intum/athena/segmentation
container_name: cofee-segmentation
restart: unless-stopped
depends_on:
- load-balancer
expose:
- 8000
env_file:
- ${ATHENA_ENV_DIR:-./env_example}/cofee.env
working_dir: /usr/src/app
labels:
- traefik.enable=true
- traefik.http.services.cofee-segmentation.loadbalancer.server.port=8000 # set service name this way
# http://localhost/upload
# http://localhost/feedback_consistency
embedding:
image: ghcr.io/ls1intum/athena/embedding
container_name: cofee-embedding
restart: unless-stopped
depends_on:
- load-balancer
- database
expose:
- 8000
env_file:
- ${ATHENA_ENV_DIR:-./env_example}/cofee.env
working_dir: /usr/src/app
labels:
- traefik.enable=true
- traefik.http.routers.upload.rule=Path(`/upload`,`/feedback_consistency`)
- traefik.http.routers.upload.entrypoints=web
- traefik.http.services.cofee-embedding.loadbalancer.server.port=8000 # set service name this way
clustering:
image: ghcr.io/ls1intum/athena/clustering
container_name: cofee-clustering
restart: unless-stopped
depends_on:
- load-balancer
- database
expose:
- 8000
env_file:
- ${ATHENA_ENV_DIR:-./env_example}/cofee.env
working_dir: /usr/src/app
labels:
- traefik.enable=true
- traefik.http.services.cofee-clustering.loadbalancer.server.port=8000 # set service name this way
database:
image: mongo:latest
container_name: cofee-mongodb
restart: unless-stopped
expose:
- 27017
env_file:
- ${ATHENA_ENV_DIR:-./env_example}/cofee.env
volumes:
- ./module_text_cofee/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./data/cofee_db:/data/db
command: --quiet > /dev/null