This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
129 lines (122 loc) · 3.67 KB
/
docker-compose.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '2'
# When editing this file, restart the services to apply the changes, running:
# sudo /app/start.sh
# To add custom device models from a folder, upload the files into the VM, and use the "volumes"
# section of "devicesimulation-svc" to mount the folder. Make sure lines are indented correctly.
# Example:
#
# volumes:
# - /absolute-path/my-device-models:/app/data:ro
# To change the simulation service configuration, create a custom appsettings.ini file, and use the
# "volumes" section of "devicesimulation-svc" to mount the file. Make sure lines are indented correctly.
# Example:
#
# volumes:
# - /app/custom-device-simulation-appsettings.ini:/app/webservice/appsettings.ini:ro
services:
apigateway-svc:
image: azureiotpcs/simulation-api-gateway:${PCS_DOCKER_TAG}
ports:
- "443:443"
depends_on:
- webui-svc
- devicesimulation-svc
- diagnostics-svc
- config-svc
volumes:
- /app/certs:/app/certs:ro
logging:
driver: "json-file"
options:
max-size: "10240k"
max-file: "10"
webui-svc:
image: azureiotpcs/device-simulation-webui:${PCS_DOCKER_TAG}
depends_on:
- devicesimulation-svc
- diagnostics-svc
- config-svc
volumes:
- /app/webui-config.js:/app/build/webui-config.js:ro
logging:
driver: "json-file"
options:
max-size: "10240k"
max-file: "10"
devicesimulation-svc:
image: azureiotpcs/device-simulation-dotnet:${PCS_DOCKER_TAG}
depends_on:
- storageadapter-svc
- diagnostics-svc
environment:
- PCS_LOG_LEVEL
- PCS_IOTHUB_CONNSTRING
- PCS_STORAGEADAPTER_WEBSERVICE_URL=http://storageadapter-svc:9022/v1
- PCS_AUTH_ISSUER
- PCS_AUTH_AUDIENCE
- PCS_AUTH_REQUIRED
- PCS_CORS_WHITELIST
- PCS_SUBSCRIPTION_DOMAIN
- PCS_SUBSCRIPTION_ID
- PCS_RESOURCE_GROUP
- PCS_IOHUB_NAME
logging:
driver: "json-file"
options:
max-size: "10240k"
max-file: "10"
volumes:
- /tmp/share:/tmp/share
# To mount custom device models, upload the files to the VM, edit and uncomment the following line:
# - /absolute-path/my-device-models:/app/data:ro
# To mount a custom service configuration, create a custom file, edit and uncomment the following line:
# - /app/custom-device-simulation-appsettings.ini:/app/webservice/appsettings.ini:ro
storageadapter-svc:
image: azureiotpcs/pcs-storage-adapter-dotnet:${PCS_DOCKER_TAG}
environment:
- PCS_LOG_LEVEL
- PCS_STORAGEADAPTER_DOCUMENTDB_CONNSTRING
- PCS_AUTH_ISSUER
- PCS_AUTH_AUDIENCE
- PCS_AUTH_REQUIRED
- PCS_CORS_WHITELIST
logging:
driver: "json-file"
options:
max-size: "10240k"
max-file: "10"
diagnostics-svc:
image: azureiotpcs/pcs-diagnostics-dotnet:${PCS_DOCKER_TAG}
depends_on:
- config-svc
environment:
- PCS_LOG_LEVEL
- PCS_AUTH_ISSUER
- PCS_AUTH_AUDIENCE
- PCS_AUTH_REQUIRED
- PCS_CORS_WHITELIST
- PCS_DEPLOYMENT_ID
- PCS_SOLUTION_TYPE
- PCS_DIAGNOSTICS_ENDPOINT_URL
logging:
driver: "json-file"
options:
max-size: "10240k"
max-file: "10"
config-svc:
image: azureiotpcs/pcs-config-dotnet:${PCS_DOCKER_TAG}
depends_on:
- storageadapter-svc
environment:
- PCS_STORAGEADAPTER_WEBSERVICE_URL=http://storageadapter-svc:9022/v1
- PCS_BINGMAP_KEY
- PCS_AUTH_ISSUER
- PCS_AUTH_AUDIENCE
- PCS_AUTH_REQUIRED
- PCS_CORS_WHITELIST
- PCS_APPLICATION_SECRET
logging:
driver: "json-file"
options:
max-size: "10240k"
max-file: "10"