-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
167 lines (157 loc) · 3.8 KB
/
docker-compose.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: '3'
#networks:
# iviewer-network:
# driver: bridge
services:
app:
build:
context: .
dockerfile: ./laravel_smp/Dockerfile
image: utsw1qbrc/iviewer_laravel_copilot:iviewer-ui
container_name: iviewer-ui
restart: unless-stopped
# ports:
# - 9000:9000
network_mode: host
working_dir: /var/www/
depends_on:
- db
volumes:
- ./laravel_smp:/var/www
db:
image: mysql:latest
container_name: db
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- iviewer-db:/var/lib/mysql
- ./db:/etc/mysql/conf.d
network_mode: host
nginx:
image: nginx:alpine
container_name: nginx
restart: unless-stopped
# ports:
# - 80:80
volumes:
- ./laravel_smp:/var/www
- ./nginx:/etc/nginx/conf.d/
network_mode: host
redis:
image: redis:latest
container_name: iviewer-redis
# networks:
# - iviewer-network
network_mode: host
deepzoom:
image: utsw1qbrc/iviewer_laravel_copilot:iviewer-deepzoom
container_name: iviewer-deepzoom
build:
context: .
dockerfile: ./deepzoom/Dockerfile
# ports:
# - "10010:9010"
depends_on:
- redis
network_mode: host
# networks:
# - iviewer-network
volumes:
- ${SLIDES_DIR}:/app/abc
- ${DATABASE_DIR}:/app/databases
environment:
- DATABASE_PATH=/app/databases
- REDIS_HOST=127.0.0.1
- REDIS_PORT=6379
annotation:
image: utsw1qbrc/iviewer_laravel_copilot:iviewer-annotation
container_name: iviewer-annotation
build:
context: .
dockerfile: ./annotation/Dockerfile
# ports:
# - "10020:9020"
depends_on:
- redis
# networks:
# - iviewer-network
network_mode: host
volumes:
- ${SLIDES_DIR}:/app/abc
- ${DATABASE_DIR}:/app/databases
environment:
- DATABASE_PATH=/app/databases
- REDIS_HOST=127.0.0.1
- REDIS_PORT=6379
hdyolo:
image: utsw1qbrc/iviewer_laravel_copilot:iviewer-hdyolo
container_name: iviewer-hdyolo
build:
context: .
dockerfile: ./nuclei/Dockerfile.agent
depends_on:
- redis
# networks:
# - iviewer-network
network_mode: host
volumes:
- ${SLIDES_DIR}:/app/abc
- ${DATABASE_DIR}:/app/databases
environment:
- DATABASE_PATH=/app/databases
- REDIS_HOST=127.0.0.1
- REDIS_PORT=6379
nuclei:
image: utsw1qbrc/iviewer_laravel_copilot:iviewer-nuclei
container_name: iviewer-nuclei
build:
context: .
dockerfile: ./nuclei/Dockerfile.queue
# ports:
# - "10030:9030"
depends_on:
- redis
- hdyolo
# networks:
# - iviewer-network
network_mode: host
volumes:
- ${SLIDES_DIR}:/app/abc
- ${DATABASE_DIR}:/app/databases
environment:
- DATABASE_PATH=/app/databases
- REDIS_HOST=127.0.0.1
- REDIS_PORT=6379
copilot:
image: utsw1qbrc/iviewer_laravel_copilot:iviewer-copilot
container_name: iviewer-copilot
build:
context: .
dockerfile: ./copilot/Dockerfile
# ports:
# - "10040:9040"
depends_on:
- redis
- annotation
# networks:
# - iviewer-network
network_mode: host
volumes:
- ${SLIDES_DIR}:/app/abc
- ${DATABASE_DIR}:/app/databases
environment:
- ANNOTATION_HOST=localhost
- ANNOTATION_PORT=9020
- OLLAMA_HOST=${OLLAMA_HOST}
- OLLAMA_PORT_CAPTION=${OLLAMA_PORT_CAPTION}
- OLLAMA_PORT_CHATBOT=${OLLAMA_PORT_CHATBOT}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- NO_PROXY=localhost,127.0.0.1,annotation,${OLLAMA_HOST}
volumes:
iviewer-db: