-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
75 lines (69 loc) · 1.49 KB
/
docker-compose.prod.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
version: '3'
services:
solr:
image: solr:7.4.0
volumes:
- solr_data:/opt/solr/server/solr/mycores
- ./docker/solr.in.sh:/opt/solr/bin/solr.in.sh
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- dataSheet
networks:
- backend
logdb:
image: mariadb:10.3.9
restart: always
env_file:
- logdb.env
volumes:
- logdb_data:/var/lib/mysql
networks:
- backend
mss-server:
image: materialsafetysearch/private:backend-stable
depends_on:
- solr
- logdb
environment:
- VIRTUAL_HOST=${SERVER_DOMAIN}
- VIRTUAL_NETWORK=proxy-tier
- VIRTUAL_PORT=8080
volumes:
- ./hazard-ds/hazard-dataset:/hazard-ds/hazard-dataset:ro
networks:
- backend
- proxy-tier
mss-client:
image: materialsafetysearch/private:frontend-stable
environment:
- API_BASE_URL=http://${SERVER_DOMAIN}
- VIRTUAL_HOST=${CLIENT_DOMAIN}
- VIRTUAL_NETWORK=proxy-tier
- VIRTUAL_PORT=80
networks:
- proxy-tier
proxy:
image: jwilder/nginx-proxy:alpine-0.7.0
restart: always
ports:
- 80:80
- 443:443
volumes:
- certs:/etc/nginx/certs:ro
- conf.d:/etc/nginx/conf.d
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy-tier
volumes:
solr_data:
logdb_data:
certs:
conf.d:
vhost.d:
html:
networks:
backend:
proxy-tier: