-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
93 lines (87 loc) · 2.04 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
version: '2'
services:
ws:
build: ./vboard-ws
restart: always
image: vboard/vboard-ws:${TAG}
labels:
- SERVICE_8080_NAME=${PROJECT_NAME}-ws
- SERVICE_8080_VERSION=${TAG}
environment:
- VBOARD_DB_HOST=wsdb
- VBOARD_ELASTICSEARCH_HOST=http://elasticsearch:9200
- VBOARD_ELASTICSEARCH_INDEX=jdbc_pins_index
- VBOARD_HOSTNAME=localhost
- VBOARD_IMAGES_DIRECTORY=/usr/local/tomcat/data/
- VBOARD_WORDPRESS_IMAGES_DIRECTORY=/usr/local/tomcat/data/blog/
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=vboard_pins
ports:
- 8080:8080
networks:
- back
volumes:
- images:/usr/local/tomcat/data
depends_on:
- wsdb
- elasticsearch
- batchs
front:
build: ./vboard-front
restart: always
image: vboard/vboard-front:${TAG}
labels:
- SERVICE_80_NAME=${PROJECT_NAME}-front
- SERVICE_80_VERSION=${TAG}
environment:
- VBOARD_WS_HOST=http://ws:8080
ports:
- 80:80
networks:
- back
volumes:
- images:/var/vboard/statics
batchs:
build: ./vboard-batchs
restart: always
image: vboard/vboard-batchs:${TAG}
environment:
- VBOARD_DB_HOST=wsdb:3306
- VBOARD_ELASTICSEARCH_HOST=http://elasticsearch:9200
- VBOARD_ELASTICSEARCH_INDEX=jdbc_pins_index
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=vboard_pins
networks:
- back
wsdb:
image: mysql:5.7
labels:
- SERVICE_NAME=${PROJECT_NAME}-wsdb
environment:
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=vboard_pins
ports:
- 3306:3306
networks:
- back
volumes:
- wsdb-data:/var/lib/mysql
elasticsearch:
restart: always
image: elasticsearch:6.4.3
labels:
- SERVICE_9200_NAME=${PROJECT_NAME}-elasticsearch
- SERVICE_9200_VERSION=${TAG}
ports:
- 9200:9200
networks:
- back
networks:
back:
driver: bridge
volumes:
images:
wsdb-data: