Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ HC_INTERVAL=40s
HC_TIMEOUT=30s
HC_RETRIES=3
HC_START_PERIOD=60s

# Email Configuration
SMTP_HOST=type-here
SMTP_PORT=type-here
SMTP_USER=type-here
SMTP_PASS=type-here
NOTIFICATION_EMAIL=type-here

GRAFANA_HOSTNAME=grafana.localhost
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ __pycache__/
dist/
*.tsbuildinfo

.DS_Store
.DS_Store
1 change: 1 addition & 0 deletions docker-compose-things.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ services:
memory: 25M
networks:
- things_network

networks:
things_network:
name: things_network
Expand Down
21 changes: 21 additions & 0 deletions monitoring/thing-monitor/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:18-alpine

WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy source code
COPY . .

# Build TypeScript code
RUN npm run build

# Expose the API port
EXPOSE 3000

# Set the default command to run the test script
CMD ["npm", "run", "test:monitor"]
Loading
Loading