forked from jhu-sheridan-libraries/stfrancis-lutece-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.17 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
version: '2'
services:
mysql:
container_name: mysql
image: mysql/mysql-server:5.6
env_file: .env
restart: always
volumes:
- db:/var/lib/mysql
- ./.secrets/:/run/secrets/
lutece-init:
image: jhulibraries/lutece-init:0.2
container_name: lutece-init
env_file: .env
depends_on:
- mysql
volumes:
- ./lutece.war:/lutece.war
- ./.webapps/:/webapps
- ./.secrets/:/run/secrets/
- ./lutece.sql:/lutece.sql
tomcat:
container_name: tomcat
image: tomcat:8
env_file: .env
depends_on:
- lutece-init
ports:
- "8080:8080"
volumes:
- ./.webapps/:/usr/local/tomcat/webapps/
- ./.secrets/:/run/secrets/
- ./server.xml:/usr/local/tomcat/conf/server.xml
nginx:
container_name: nginx
image: nginx:1.17.7
depends_on:
- tomcat
ports:
- "80:80"
- "443:443"
volumes:
- ./.nginx/conf.d/:/etc/nginx/conf.d/
- ./.nginx/certs/cert.crt:/etc/nginx/cert.crt
- ./.nginx/certs/cert.key:/etc/nginx/cert.key
volumes:
db:
driver: local