forked from open-osp/open-osp
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
102 lines (95 loc) · 2.94 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
version: "3.3"
services:
db:
restart: 'always'
image: mariadb:10.5
command: 'mysqld --character-set-server=utf8 --collation-server=utf8_general_ci'
working_dir: /code
env_file:
- local.env
environment:
MYSQL_DATABASE: drugref2
MYSQL_USER: oscar
TZ: America/Vancouver
volumes:
# TODO: build this in to the image.
- ./docker/db/my.cnf:/etc/mysql/my.cnf
# TODO: build some scripts in so we need not mount everything.
- .:/code
- mariadb-files:/var/lib/mysql
networks:
- back-tier
deploy:
resources:
limits:
cpus: '2'
memory: 15G
oscar:
restart: 'always'
image: openosp/open-osp:latest
build: docker/oscar
volumes:
- ./volumes/oscar.properties:/root/oscar.properties
- ./volumes/drugref2.properties:/root/drugref2.properties
- ./volumes/OscarDocument:/var/lib/OscarDocument
- ./volumes/ssl.crt:/usr/local/tomcat/conf/ssl.crt
- ./volumes/ssl.key:/usr/local/tomcat/conf/ssl.key
- ./volumes/chain.pem:/usr/local/tomcat/conf/chain.pem
# Add other volumes to the volumes/ folder, and mount them via docker-compose.override.yml
networks:
- back-tier
environment:
TZ: America/Vancouver
CATALINA_OPTS: -Djava.awt.headless=true
JAVA_OPTS: -Dlog4j2.formatMsgNoLookups=true -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseConcMarkSweepGC -Xmx2G -Xms2G -XX:MaxPermSize=1G -XX:CMSInitiatingOccupancyFraction=68 -Xincgc -Dorg.apache.el.parser.COERCE_TO_ZERO=true
deploy:
resources:
limits:
cpus: '2'
memory: 15G
expedius:
restart: 'always'
image: openosp/expedius:latest
build: docker/expedius
volumes:
- ./volumes/ssl.crt:/usr/local/tomcat/conf/ssl.crt
- ./volumes/ssl.key:/usr/local/tomcat/conf/ssl.key
- ./volumes/expedius:/var/lib/expedius
- ./volumes/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml
networks:
- back-tier
environment:
TZ: America/Vancouver
JAVA_OPTS: -Dlog4j2.formatMsgNoLookups=true
deploy:
resources:
limits:
cpus: '2'
memory: 4G
faxws:
restart: 'always'
image: openosp/faxws:latest
build: docker/faxws
volumes:
- ./volumes/OscarDocument:/var/lib/OscarDocument
- ./volumes/ssl.crt:/usr/local/tomcat/conf/ssl.crt
- ./volumes/ssl.key:/usr/local/tomcat/conf/ssl.key
networks:
- back-tier
env_file:
- local.env
environment:
TZ: America/Vancouver
MYSQL_HOST: db
JAVA_OPTS: -Dlog4j2.formatMsgNoLookups=true
deploy:
resources:
limits:
cpus: '2'
memory: 4G
volumes:
mariadb-files:
driver: local
networks:
back-tier:
driver: bridge