Skip to content

Commit 269e928

Browse files
committed
update-go
1 parent 041ce74 commit 269e928

File tree

4 files changed

+49
-5
lines changed

4 files changed

+49
-5
lines changed

.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: [ dev ]
5+
branches: [ main ]
66
tags: [ 'v*.*.*' ]
77
pull_request:
8-
branches: [ dev ]
8+
branches: [ main ]
99

1010
env:
1111
REGISTRY: ghcr.io

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,40 @@ Monitor logs from multiple Traefik instances:
9292
BACKEND_CONTAINER_NAME=my-traefik-backend
9393
FRONTEND_CONTAINER_NAME=my-traefik-frontend
9494
```
95+
```yml
96+
backend:
97+
image: ghcr.io/hhftechnology/traefik-log-dashboard-backend:latest
98+
container_name: log-dashboard-backend
99+
restart: unless-stopped
100+
volumes:
101+
- ./config/traefik/logs:/logs:ro # Mount the Traefik logs directory
102+
- ./config/maxmind:/maxmind # Mount the Traefik logs directory
103+
environment:
104+
- PORT=3001
105+
- TRAEFIK_LOG_FILE=/logs/access.log
106+
- USE_MAXMIND=true
107+
- MAXMIND_DB_PATH=/maxmind/GeoLite2-City.mmdb
108+
- MAXMIND_FALLBACK_ONLINE=true
109+
- GOGC=50
110+
- GOMEMLIMIT=500MiB
111+
112+
frontend:
113+
image: ghcr.io/hhftechnology/traefik-log-dashboard-frontend:latest
114+
container_name: log-dashboard-frontend
115+
restart: unless-stopped
116+
ports:
117+
- "3000:80"
118+
depends_on:
119+
- backend
120+
deploy:
121+
resources:
122+
limits:
123+
cpus: '0.5'
124+
memory: 256M
125+
reservations:
126+
cpus: '0.1'
127+
memory: 64M
128+
```
95129

96130
3. **Build and run**
97131

docker-compose-prod.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ services:
22
backend:
33
restart: always
44
environment:
5-
- NODE_ENV=production
5+
- PORT=3001
6+
- TRAEFIK_LOG_FILE=/logs/access.log
7+
- USE_MAXMIND=true
8+
- MAXMIND_DB_PATH=/maxmind/GeoLite2-City.mmdb
9+
- MAXMIND_FALLBACK_ONLINE=true
10+
- GOGC=50
11+
- GOMEMLIMIT=500MiB
612
deploy:
713
resources:
814
limits:

docker-compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ services:
33
build: ./backend
44
container_name: ${BACKEND_CONTAINER_NAME:-traefik-dashboard-backend}
55
environment:
6-
- NODE_ENV=production
76
- PORT=3001
8-
- TRAEFIK_LOG_FILE=/logs/traefik.log
7+
- TRAEFIK_LOG_FILE=/logs/access.log
8+
- USE_MAXMIND=true
9+
- MAXMIND_DB_PATH=/maxmind/GeoLite2-City.mmdb
10+
- MAXMIND_FALLBACK_ONLINE=true
11+
- GOGC=50
12+
- GOMEMLIMIT=500MiB
913
volumes:
1014
# Mount your Traefik log file or directory here
1115
- ${TRAEFIK_LOG_PATH:-./logs}:/logs:ro

0 commit comments

Comments
 (0)