Active Directory Map displays employees from Microsoft Entra ID (Azure AD) on a world map using their city/state/country attributes.
The published image is seanmcilvenna/azuremap:latest.
docker run --name azuremap -p 3001:3001 ^
-e SESSION_SECRET="change-me" ^
-e AZURE_TENANT_ID="your-tenant-id" ^
-e AZURE_USER_CLIENT_ID="your-user-client-id" ^
-e AZURE_USER_CLIENT_SECRET="your-user-client-secret" ^
-e AZURE_USER_REDIRECT_URI="http://localhost:3001/auth/redirect" ^
-e AZURE_SERVICE_CLIENT_ID="your-service-client-id" ^
-e AZURE_SERVICE_CLIENT_SECRET="your-service-client-secret" ^
-e GOOGLE_API_KEY="your-google-api-key" ^
-e EMBED_TOKEN="optional-embed-token" ^
seanmcilvenna/azuremap:latest
Mount a config.json and point the container at it with CONFIG_PATH (or set variables directly).
docker run --name azuremap -p 3001:3001 ^
-e CONFIG_PATH="/app/config/config.json" ^
-v ${PWD}\config\config.json:/app/config/config.json:ro ^
seanmcilvenna/azuremap:latest
If you set an embed token, you can bypass OAuth by passing a token query parameter. Example:
http://localhost:3001/?token=YOUR_EMBED_TOKEN
The app strips the token from the URL after the first request, but you should still treat it as a secret.
Environment variables take precedence over config/config.json. Use one or the other (or a mix) depending on how you deploy. (If you use a .env file, load it via your process manager or shell; the app does not auto-load dotenv.)
server.port / PORT: Port the Express server listens on. Default: 3001.server.sessionSecret / SESSION_SECRET: Secret used to sign session cookies (required).server.embedToken / EMBED_TOKEN: Optional shared secret that enables token bypass.server.appTitle / APP_TITLE: Title and header text for the page. Default: Azure Map.server.buyMeCoffeeUrl / BUY_ME_A_COFFEE_URL: Optional link shown in the header. Defaults to https://www.buymeacoffee.com/seanmcilvenna. Set to blank to hide.azureAd.tenantId / AZURE_TENANT_ID: Azure tenant ID (directory ID).azureAd.userAuth.clientId / AZURE_USER_CLIENT_ID: Client ID for the user-auth app registration.azureAd.userAuth.clientSecret / AZURE_USER_CLIENT_SECRET: Client secret for the user-auth app registration.azureAd.userAuth.redirectUri / AZURE_USER_REDIRECT_URI (or AUTH_REDIRECT_URI): OAuth redirect URI (must match the app registration). Example: http://localhost:3001/auth/redirect.azureAd.service.clientId / AZURE_SERVICE_CLIENT_ID: Client ID for the service app registration.azureAd.service.clientSecret / AZURE_SERVICE_CLIENT_SECRET: Client secret for the service app registration.google.apiKey / GOOGLE_API_KEY: Google API key with access to Maps JavaScript API and Geocoding API.You need two app registrations: one for user login (delegated permissions) and one for service-to-service Graph access (application permissions).
http://localhost:3001/auth/redirect.User.Read.User.Read.All (or Directory.Read.All if required).docker pull seanmcilvenna/azuremap:latest