-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (50 loc) · 1.28 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
version: '3.1'
services:
db:
container_name: ${NAME}-db
image: postgres:12
restart: unless-stopped
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=ubo
volumes:
- ${DB_DATA}:/var/lib/postgresql/data/
ports:
- ${DB_PORT}:5432
solr:
container_name: ${NAME}-solr
build: ubo-webapp/src/main/setup/solr/
restart: unless-stopped
volumes:
- ${SOLR_DATA}:/var/solr/data
ports:
- ${SOLR_HTTP}:8983
ubo:
container_name: ${NAME}-ubo
build: ./
restart: unless-stopped
environment:
- APP_CONTEXT=${APP_CONTEXT}
- JDBC_NAME=${DB_USER}
- JDBC_PASSWORD=${DB_PASSWORD}
- JDBC_DRIVER=org.postgresql.Driver
- JDBC_URL=jdbc:postgresql://db:5432/ubo
- SOLR_URL=http://solr:8983
- SOLR_CORE=ubo
- SOLR_CLASSIFICATION_CORE=ubo-classifications
- XMX=${APP_XMX}
- XMS=${APP_XMS}
- APP_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8295
volumes:
- ${APP_HOME}:/mcr/home/
- ${APP_DATA}:/mcr/data/
- ${APP_LOGS}:/mcr/logs/
- ${APP_TMP}:/mcr/tmp/
depends_on:
- db
- solr
ports:
- ${APP_HTTP}:8080
- ${APP_AJP}:8009
- ${APP_DEBUG}:8295