This Docker Compose configuration sets up a local development environment with the following services:
- MWS (My webMethods Server)
- MSR (Microservices Runtime)
- PostgreSQL database (
wmdb) - DCC-based DB initialization (
db-init)
git clone <your-repo>
cd <your-repo>mkdir -p \
mws/volumes/{apps,configs,data,libs,logs,patches} \
msr/{license,server} \
dcc/{logs,init}You may also place initialization files in dcc/init if needed.
docker-compose up -dMy webMethods Server container
- Image:
mws:10.15 - Ports:
8585exposed for web access - Volumes:
- Mounts app, config, and data folders from
./mws/volumes - Receives DCC init signaling via
./dcc/init
- Mounts app, config, and data folders from
- Environment Variables:
- Database credentials and connection string
- Server instance and volume base paths
- User: Runs as UID/GID
1724 - Depends on:
db-init
Integration Server / Microservices Runtime
- Image:
msr:10.15 - Ports:
5555: HTTP port9999: Admin or diagnostics port
- Volumes:
- Licenses and server state under
./msr - Shared init signaling via
./dcc/init
- Licenses and server state under
- Depends on:
db-init
PostgreSQL database container
- Image:
postgres:latest - Ports:
5432for database access - Credentials:
- User:
wm - Password:
wm - DB:
wm
- User:
- Volume:
db_datafor persistent storage
Database configuration via IBM webMethods's DCC tool
- Image:
dcc:10.15 - Entry point: Overridden to run custom init command
- Command:
- Initializes the MWS DB schema using
dbConfigurator.sh - Signals readiness by touching
/tmp/ready
- Initializes the MWS DB schema using
- Healthcheck:
- Waits for
/tmp/readybefore allowing dependent services to start
- Waits for
| Volume | Purpose |
|---|---|
db_data |
PostgreSQL persistent data |
./mws/volumes |
MWS runtime volumes |
./msr/server |
IS/MSR server runtime data |
./msr/license |
License files for MSR |
./dcc/logs |
DCC log output |
./dcc/init |
Shared signaling and init data |
| Network | Description |
|---|---|
localdev |
Shared network for all services |
To stop the services:
docker-compose downTo stop and clean everything including volumes:
docker-compose down --volumes --remove-orphans- Check logs with:
docker-compose logs -f
- If
mws-appormsrwon't start, check whetherdb-initcompleted successfully (look for/tmp/readyor logs indcc/logs).
- Replace image names (
mws:10.15,msr:10.15,dcc:10.15) with your actual image names or tags as required. - Ensure your license files and server directories exist where expected.