File tree Expand file tree Collapse file tree 4 files changed +49
-5
lines changed Expand file tree Collapse file tree 4 files changed +49
-5
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ name: Build and Push Docker Images
22
33on :
44 push :
5- branches : [ dev ]
5+ branches : [ main ]
66 tags : [ 'v*.*.*' ]
77 pull_request :
8- branches : [ dev ]
8+ branches : [ main ]
99
1010env :
1111 REGISTRY : ghcr.io
Original file line number Diff line number Diff 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
961303. ** Build and run**
97131
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments