-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
99 lines (92 loc) · 2.06 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
version: '3'
volumes:
mongo-data:
networks:
voc-net:
driver: bridge
services:
server:
build:
dockerfile: ./Dockerfile
context: .
depends_on:
- "db"
- "search"
ports:
- "8080:8080"
- "443:443"
restart: on-failure
networks:
- voc-net
volumes:
- ./:/vocserver
command: sh -c "cd vocserver && ./config/search_setup.sh &&
java -jar target/vocserver-1.0-fat.jar -conf config/vocserver.json"
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
server-local:
build:
dockerfile: ./Dockerfile
context: .
depends_on:
- "db"
ports:
- "443:443"
- "8081:8081"
restart: on-failure
networks:
- voc-net
volumes:
- ./:/vocserver
command: sh -c "cd vocserver && ./redeploy.sh"
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
db:
image: mongo
volumes:
- mongo-data:/var/lib/mongodb/
- ./config/mongo_setup.sh:/docker-entrypoint-initdb.d/init.sh
- ./config/vocserver.json:/docker-entrypoint-initdb.d/vocserver.json
networks:
- voc-net
expose:
- "27017"
command: mongod --auth
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
db-local:
image: mongo
volumes:
- mongo-data:/var/lib/mongodb/
- ./config/mongo_setup.sh:/docker-entrypoint-initdb.d/init.sh
- ./config/vocserver_local.json:/docker-entrypoint-initdb.d/vocserver.json
networks:
- voc-net
ports:
- "27017:27017"
command: mongod --auth
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
search:
image: getmeili/meilisearch:v0.12.0
networks:
- voc-net
expose:
- "27017"
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"