-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.cosmosdb.yml
40 lines (38 loc) · 1.24 KB
/
docker-compose.cosmosdb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
cosmosdb:
container_name: pctasks-cosmosdb
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest
environment:
- AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true
- AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=172.16.238.246
# Controls the number of possible containers the emulator can hold
# This this number of containers is reached, the emulator will start
# throwing ServiceUnavailable exceptions.
# See https://learn.microsoft.com/en-us/azure/cosmos-db/emulator-command-line-parameters#set-partitioncount
- AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10
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'
volumes:
- pctasks-cosmosdb-data:/tmp/cosmosdb
stop_grace_period: 1s # Cosmos emulator isn't responsive to SIGTERM
networks:
default:
ipv4_address: 172.16.238.246
networks:
default:
# Network created during scripts/setup
external:
name: pctasks-network
volumes:
pctasks-cosmosdb-data: null