-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 959 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 959 Bytes
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
version: "3.8"
services:
sqledge:
image: mcr.microsoft.com/azure-sql-edge
container_name: sqledge
environment:
ACCEPT_EULA: "1"
MSSQL_SA_PASSWORD: ${DB_PASSWORD}
ports:
- "1433:1433"
sensor-api:
build: ./sensor-api
container_name: sensor-api
environment:
DB_SERVER: ${DB_SERVER}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
API_PORT: ${API_PORT}
ports:
- "${API_PORT}:80"
depends_on:
- sqledge
grafana:
image: grafana/grafana-oss:10.2.3
container_name: grafana
environment:
GF_SECURITY_ADMIN_USER: admin
GF_INSTALL_PLUGINS: marcusolsson-json-datasource
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PW}
volumes:
- ./grafana/dashboards:/var/lib/grafana/dashboards
- grafana-storage:/var/lib/grafana
ports:
- "3000:3000"
depends_on:
- sensor-api
volumes:
grafana-storage: