-
Notifications
You must be signed in to change notification settings - Fork 1
Docker Compose
github-actions[bot] edited this page Sep 11, 2025
·
1 revision
This guide explains how to use Docker Compose to run the full Mnestix Proxy stack, including the proxy, API, AAS environment, discovery, registry, and MongoDB.
- compose.yml: For production or standard usage. Uses pre-built images.
-
compose.dev.yml: For development. Builds the
mnestix-proxyimage from your local source.
- Docker installed
-
Docker Compose (or use
docker composecommand with Docker Desktop)
From the project root, run:
docker compose upThis will start all services using pre-built images.
To build and run the proxy from your local source (using compose.dev.yml):
docker compose -f compose.yml -f compose.dev.yml up --buildThis will build the mnestix-proxy image from your local Dockerfile and start all services. The development compose file also exposes all service ports for easier debugging.
-
mnestix-proxy: Main reverse proxy gateway (
5065:5065) -
mnestix-api: Backend API service (
5064:5064) -
mongodb: MongoDB database for AAS and discovery services (
27017:27017) -
aas-environment: Eclipse BaSyx AAS environment (repository) (
8081:8081) -
aas-discovery: Eclipse BaSyx AAS discovery service (
8082:8081) -
aas-registry: Eclipse BaSyx AAS registry (
8083:8080) -
submodel-registry: Eclipse BaSyx submodel registry (
8084:8080)
All services are connected via the mnestix-network Docker network.
- Proxy: http://localhost:5065
- API: http://localhost:5064
- AAS Environment: http://localhost:8081
- AAS Discovery: http://localhost:8082
- AAS Registry: http://localhost:8083
- Submodel Registry: http://localhost:8084
- MongoDB: localhost:27017
You can override default settings using environment variables, e.g.:
-
MNESTIX_BACKEND_API_KEY: API key for secured endpoints
See compose.yml and compose.dev.yml for all configurable variables.
To stop and remove all containers:
docker compose down- View logs:
docker compose logs - Check health status: Services use health checks to ensure readiness.
- Make sure required ports are available and not blocked.
- Edit
compose.ymlorcompose.dev.ymlto change ports, images, or environment variables. - Update
mnestix-proxy/appsettings.jsonfor proxy configuration.