-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
125 lines (116 loc) · 3.3 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
services:
rabbitmq:
restart: always
container_name: celery_rabbitmq
image: rabbitmq:latest
# comment port when deploy
# ports:
# - "5672:5672"
redis:
restart: always
container_name: celery_redis
image: redis:latest
# comment port when deploy
# ports:
# - "6379:6379"
beat:
depends_on:
- rabbitmq
- redis
restart: always
container_name: celery_beat
image: ljwdocker1989/celery_flower:latest
build:
context: .
dockerfile: dockerfiles/celery_flower.df
command: celery -A celery_project.app -b amqp://rabbitmq:5672 --result-backend redis://redis:6379/0 beat
worker:
depends_on:
- rabbitmq
- redis
restart: always
container_name: celery_worker
image: ljwdocker1989/celery_worker:latest
build:
context: .
dockerfile: dockerfiles/celery_worker.df
volumes:
- "./flask_project/tmp:/app/tmp"
- "./genome:/app/genome:ro"
command: celery -A celery_project.app -b amqp://rabbitmq:5672 --result-backend redis://redis:6379/0 worker
flask:
depends_on:
- rabbitmq
- redis
- worker
restart: always
container_name: flask_app
image: ljwdocker1989/flask_app:latest
build:
context: .
dockerfile: dockerfiles/flask.df
volumes:
- "./flask_project/tmp:/app/tmp"
environment:
CELERY_BROKER: amqp://rabbitmq:5672
CELERY_BACKEND: redis://redis:6379/0
command: waitress-serve --url-prefix=/workflow app:flaskApp
flower:
depends_on:
- rabbitmq
- redis
- worker
restart: always
container_name: celery_flower
image: ljwdocker1989/celery_flower:latest
build:
context: .
dockerfile: dockerfiles/celery_flower.df
command: celery -A celery_project.app -b amqp://rabbitmq:5672 --result-backend redis://redis:6379/0 flower --url_prefix=/flower
nginx:
depends_on:
- flask
- flower
- shiny
- chat-ui-db
restart: always
container_name: flask_nginx
image: nginx:latest
ports:
- "80:80"
# - "443:443"
volumes:
- "./nginx/conf/:/etc/nginx/conf.d/:ro"
- "./nginx/html/:/usr/share/nginx/html/:ro"
# - "./openssl/:/etc/ssl/:ro"
# - "./certbot/letsencrypt/:/etc/letsencrypt/:ro"
# command: [nginx-debug, '-g', 'daemon off;']
shiny:
restart: always
container_name: shiny_server
image: ljwdocker1989/shiny_server:latest
build:
context: .
dockerfile: docker-images/shiny-server/shiny_server.df
volumes:
- "./docker-images/shiny-server/apps:/srv/shiny-server"
- "./docker-images/shiny-server/conf:/etc/shiny-server"
- "./docker-images/shiny-server/logs:/var/log/shiny-server"
chat-ui-db:
depends_on:
- Phi-3-mini-4k-instruct-gguf
restart: always
container_name: chat-ui-db
image: ghcr.io/huggingface/chat-ui-db
volumes:
- "./chat-ui/.env.local:/app/.env.local"
- "./chat-ui/data:/data"
environment:
PUBLIC_ORIGIN: "http://qiangwulab.sjtu.edu.cn:80"
Phi-3-mini-4k-instruct-gguf:
restart: always
container_name: Phi-3-mini-4k-instruct-gguf
image: ghcr.io/ggerganov/llama.cpp:server
volumes:
- "./chat-ui/llama.cpp:/models"
command: -m /models/Phi-3-mini-4k-instruct-q4.gguf --host 0.0.0.0 -c 4096