- Create a new docker-compose file called
docker-compose-manage91.yaml
in the root folder of our project - ManageLocal

docker-compose-manag91.yaml
services:
# --- Manage DB2 Server V912 DB Demo Data---
mxdb2pod:
image: db2mng91:latest #Our Image name from previous step
hostname: managedb2
container_name: mng-db2-v912
restart: always
privileged: true
mem_limit: 4096m # Limit to 4 GB RAM
cpus: 1.5
ports:
- "50000:50000"
environment:
- LICENSE=accept
- DB2INSTANCE=db2inst1
- DB2INST1_PASSWORD=maximo
- DBNAME=MAXDB9
volumes:
- mngdb2data:/database
networks:
- managelan
# --- Manage v912 Installed and WLP App Server---
mxwlppod:
build:
context: ./managewlppod
args:
BUNDLE: "all"
image: manage91:latest #Our Image name from previous step
container_name: mngsmp-wlp-v912
hostname: manage91
restart: always
depends_on:
- mxdb2pod
ports:
- "9080:9080"
- "9443:9443"
- "7777:7777"
volumes:
- ./managewlppod/logs:/logs/
- ./managewlppod/mif:/opt/mx-files/mif
- ./managewlppod/doclinks:/opt/mx-files/doclinks
environment:
- TZ=Pacific/Auckland
- LC_ALL=en_US.UTF-8
# - JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:7777
# command: ["server", "debug", "defaultServer"]
mem_limit: 8192m # Limit to 8 GB RAM
cpus: 2.0 # Limit to 2 CPUs
networks:
- managelan
volumes:
mngdb2data:
driver: local
networks:
managelan:
driver: bridge
if you don’t wan to run db2 locally, remove the mxdb2pod
section completely and update maximo.properties
file in ear to point to database you wanted to connect.
-
Open a command-line shell like Windows Terminal (Run as Administrator) and change the current working directory to the above folder (ManageLocal).
Execute below command to run the docker images as container.
Command:
docker compose -p mx-db2-v912 -f .\docker-compose-manage91.yaml up -d
-p
: Project Name in Docker
-f
: To Specify docker compose File to the command.
up -d
: Instruct the docker to start the containers listed in docker compose file. (-d signifies detached mode)


-
Db2 Container - mng-db2-v912 will take few minutes to get started. Custom init-db2.sh
will create required db user, schema for maximo demo database.
Now we have to install demo data using maxinst
command. to do that first we need to connect to mngsmp-wlp-v912 container using docker exec
command.
Command:
docker exec -u root -it mngsmp-wlp-v912 bash
-
Now we have to execute the MAXINST command as below
Command:
cd /opt/IBM/SMP/maximo/tools/maximo
./maxinst.sh -sMAXDATA -tMAXDATA -imaxdemo

This installs Demo Database to Db2 Container and ready for connections.
-
Before accessing Maximo ensure the mngsmp-wlp-v912
container is restarted after MAXINST and wlp is connecting to db2 properly. monitor the logs in Docker Desktop UI.