Skip to content

Instantly share code, notes, and snippets.

@sajeetharan
Last active August 14, 2023 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajeetharan/5280de9e16acacdb7a0ba41f0148e1dd to your computer and use it in GitHub Desktop.
Save sajeetharan/5280de9e16acacdb7a0ba41f0148e1dd to your computer and use it in GitHub Desktop.
Deploy emulator linux
version: '2.4'
networks:
default:
external: false
ipam:
driver: default
config:
- subnet: "172.16.238.0/24"
services:
# First create a directory that will hold the emulator traces and certificate to be imported
# mkdir /data/db
cosmosdb:
container_name: "azurecosmosemulator"
hostname: "azurecosmosemulator"
image: 'mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator'
platform: linux
tty: true
ports:
- '8081:8081'
- '8900:8900'
- '8901:8901'
- '8902:8902'
- '10250:10250'
- '10251:10251'
- '10252:10252'
- '10253:10253'
- '10254:10254'
- '10255:10255'
- '10256:10256'
- '10350:10350'
networks:
default:
ipv4_address: 172.16.238.246
volumes:
- type: bind
source: /data/db
target: /data/db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment