Skip to content

Commit e3ebee4

Browse files
Merge pull request #14 from hhftechnology/dev
Dev
2 parents 960117f + ea58893 commit e3ebee4

33 files changed

+3678
-596
lines changed

.dockerignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Git
2+
.git
3+
.gitignore
4+
5+
# Node
6+
node_modules
7+
npm-debug.log
8+
yarn-error.log
9+
10+
# Editor
11+
.vscode
12+
.idea
13+
14+
# OS
15+
.DS_Store
16+
Thumbs.db
17+
18+
# Other
19+
*.md
20+
LICENSE
21+
Makefile

.env.example

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Path to your Traefik log file or directory
2+
# Can be a single path or comma-separated list of paths
3+
# Examples:
4+
# - Single file: /path/to/traefik.log
5+
# - Single directory: /path/to/logs/
6+
# - Multiple paths: /path/to/logs1/,/path/to/logs2/,/path/to/specific.log
27
TRAEFIK_LOG_PATH=/path/to/traefik/logs
38

49
# Backend API port (optional, default: 3001)
510
PORT=3001
611

712
# Frontend port (optional, default: 3000)
8-
FRONTEND_PORT=3000
13+
FRONTEND_PORT=3000
14+
15+
# Backend service name for Docker networking (optional, default: backend)
16+
BACKEND_SERVICE_NAME=backend
17+
18+
# Container names (optional, with defaults)
19+
BACKEND_CONTAINER_NAME=traefik-dashboard-backend
20+
FRONTEND_CONTAINER_NAME=traefik-dashboard-frontend

.github/workflows/build-and-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Build and Push Docker Images
22

33
on:
44
push:
5-
branches: [ main, master ]
5+
branches: [ main ]
66
tags: [ 'v*.*.*' ]
77
pull_request:
8-
branches: [ main, master ]
8+
branches: [ main ]
99

1010
env:
1111
REGISTRY: ghcr.io

Deployment.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ Set `TRAEFIK_LOG_PATH` to your actual Traefik log location:
3838

3939
```bash
4040
# Build and start services
41-
docker-compose up -d
41+
docker compose up -d
4242

4343
# Check logs
44-
docker-compose logs -f
44+
docker compose logs -f
4545

4646
# Verify services are running
47-
docker-compose ps
47+
docker compose ps
4848
```
4949

5050
### 6. Access Dashboard
@@ -57,7 +57,6 @@ Open http://localhost:3000 in your browser.
5757

5858
```yaml
5959
# docker-compose.prod.yml
60-
version: '3.8'
6160

6261
services:
6362
backend:
@@ -255,8 +254,8 @@ register.registerMetric(httpRequestDuration);
255254

256255
```bash
257256
# Check logs
258-
docker-compose logs backend
259-
docker-compose logs frontend
257+
docker compose logs backend
258+
docker compose logs frontend
260259

261260
# Verify file permissions
262261
ls -la /path/to/traefik/logs

0 commit comments

Comments
 (0)