79565302

Date: 2025-04-09 20:52:35
Score: 0.5
Natty:
Report link

To whom it may concern,

Although in documentation is not specified, you if emulator is running in docker you need to set

- AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=127.0.0.1

Answer was actually here: https://stackoverflow.com/a/75757385

If somone needs, this is basic docker-compose.yaml file that works.

services:
  cosmosdb-emulator:
    image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest
    container_name: cosmos-db-emulator
    ports:
      - "8081:8081"
      - "10250-10255:10250-10255"
    environment:
      - AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=127.0.0.1
      - AZURE_COSMOS_EMULATOR_PARTITION_COUNT=3
      - AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true      
    restart: unless-stopped

Just to point few more things.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ivan ho ho ho