-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env
45 lines (38 loc) · 2.03 KB
/
.env
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
#!/usr/bin/env bash
# This file contains the environment variables used by the shell scripts and docker-compose file
# It must be named this so docker-compose will use it, it is currently hard-coded into docker-compose
# System/VM Variables
CUSTOM_PROFILE_FILENAME=custom.sh
COMPOSE_PROJECT_NAME=mms
## Docker Installation Variables
DOCKER_CE_REPO_URL=https://download.docker.com/linux/centos/docker-ce.repo
## Docker Compose Installation Variables
DOCKER_COMPOSE_BASE_URL=https://github.com/docker/compose/releases/download
DOCKER_COMPOSE_LOCATION=/usr/local/bin/docker-compose
DOCKER_COMPOSE_VERSION="1.23.2"
# PostgreSQL Variables (db service)
PG_IMAGE=postgres:9.4-alpine
PG_SERVICE_NAME=db
PG_PORT=5432
PG_DB_NAME=mms
PG_USERNAME=mmsuser
PG_PASSWORD=SoM3sUp3r5ECRETpAs5w0rD
PG_DB_CREATION_COMMAND="create table if not exists organizations ( id bigserial primary key, orgId text not null, orgName text not null, constraint unique_organizations unique(orgId, orgName) ); create index orgId on organizations(orgId); create table projects ( id bigserial primary key, projectId text not null, orgId integer references organizations(id), name text not null, location text not null, constraint unique_projects unique(orgId, projectId) ); create index projectIdIndex on projects(projectid);"
PG_TEST_CREATEDB_ROLE_COMMAND="select rolcreatedb from pg_roles where rolname = current_user"
PG_WAIT=10
# Elasticsearch Variables (search service)
ES_IMAGE=elasticsearch:5.5-alpine
ES_SERVICE_NAME=search
ES_PORT=9200
ES_MAPPING_TEMPLATE_FILE=mapping_template.json
ES_MAPPING_TEMPLATE_URL=https://github.com/Open-MBEE/mms/raw/develop/mms-ent/repo-amp/src/main/resources/mapping_template.json
ES_MAX_MAP_COUNT=262144
ES_SYSCTL_CONF_FILE=/usr/lib/sysctl.d/90-elastic-search.conf
ES_WAIT=10
# MMS Variables (web service)
CATALINA_OPTS="-Xmx1G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:G1HeapRegionSize=8m -XX:MaxGCPauseMillis=200"
MMS_IMAGE=openmbee/mms:latest
MMS_EXTERNAL_PORT=8080
MMS_ALFRESCO_DATA_DIR=/mnt/alf_data
MMS_USERNAME=admin
MMS_PASSWORD=admin