Docker Image for the Model Management System
10K+
Use the following docker-compose file for quick start, for more info on configuration, see https://github.com/Open-MBEE/mmsri. The default admin user and pass for this is test/test
version: '3.8'
services:
postgres:
image: postgres:11-alpine
environment:
- POSTGRES_PASSWORD=test1234
- POSTGRES_USER=mmsuser
- POSTGRES_DB=mms
ports:
- 5432:5432
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.1
environment:
- "discovery.type=single-node"
ports:
- 9200:9200
- 9300:9300
minio:
image: minio/minio:RELEASE.2022-05-26T05-48-41Z.hotfix.15f13935a
environment:
- "MINIO_ACCESS_KEY=admintest"
- "MINIO_SECRET_KEY=admintest"
command: server /tmp/data
ports:
- 9000:9000
mms:
image: openmbee/mms:4.0.20
container_name: mms
hostname: mms
environment:
- "SPRING_PROFILES_ACTIVE=test"
depends_on:
- postgres
- elasticsearch
- minio
ports:
- 8080:8080
To run the container:
--mount source=mmsvol,target=/mnt/alf_data
--publish=8080:8080
Set the PostgreSQL info:
-e PG_HOST={PG_ID_ADDR}
-e PG_DB_USER=${PG_USER}
-e PG_DB_PASS={PG_PASS}
-e ES_HOST={PG_ID_ADDR}
Example running the container
docker run --mount source=mmsvol,target=/mnt/alf_data --publish=8080:8080 -e PG_HOST={PG_ID_ADDR} -e PG_DB_NAME=mms -e PG_DB_USER=${PG_USER} -e PG_DB_PASS={PG_PASS} -e ES_HOST={PG_ID_ADDR} -d mms-image
Example for initializing Postgres in docker
docker run -d --name postgres-docker --publish=5432:5432 -e POSTGRES_USER=${PG_USER} -e POSTGRES_PASSWORD=${PG_PASS} postgres:9.4-alpine
docker exec -it postgres-docker psql -h localhost -U postgres -c "ALTER ROLE ${PG_USER} CREATEDB"
docker exec -it postgres-docker createdb -h localhost -U ${PG_USER} alfresco
docker exec -it postgres-docker createdb -h localhost -U ${PG_USER} mms
docker exec -it postgres-docker psql -h localhost -U ${PG_USER} -d mms -c "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);"
Example for initializing Elasticsearch in docker
docker run -d --name elasticsearch-docker --publish=9200:9200 elasticsearch:5.5-alpine
curl -XPUT http://localhost:9200/_template/template -d @repo-amp/src/main/resources/mapping_template.json
Content type
Image
Digest
sha256:382e79534…
Size
295.5 MB
Last updated
over 2 years ago
docker pull openmbee/mms