-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (61 loc) · 1.28 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
version: '3'
services:
solr:
container_name: solr
image: solr:8.3
ports:
- 8983:8983
volumes:
- data:/var/solr
- ./coreConfig:/opt/solr/server/solr/configsets/ruianConfig:ro
command:
- solr-precreate
- ruian
- /opt/solr/server/solr/configsets/ruianConfig
networks:
- solr
healthcheck:
test: wget --spider -q http://localhost:8983 || exit 1
interval: 20s
timeout: 10s
spring-boot:
container_name: backend
hostname: spring-boot
build:
context: ./backend/
args:
RUIAN_SOLR_URL: http://solr:8983/solr
image: backend/spring-boot
environment:
RUIAN_SOLR_URL: http://solr:8983/solr
networks:
- solr
- proxy
depends_on:
- solr
healthcheck:
test: wget --spider -q http://localhost:8080 || exit 1
interval: 20s
timeout: 10s
vue-app:
container_name: frontend
hostname: vue-app
build: ./frontend/
image: frontend/vue
ports:
- 8000:80
networks:
- proxy
depends_on:
- spring-boot
healthcheck:
test: wget --spider -q http://localhost:80 || exit 1
interval: 20s
timeout: 10s
volumes:
data:
networks:
solr:
driver: bridge
proxy:
driver: bridge