Skip to content

Commit a897fe3

Browse files
Create docker-compose.yml
1 parent 4ae1a35 commit a897fe3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
services:
2+
traefik:
3+
image: traefik:v3.3.4
4+
volumes:
5+
- log_volume:/logs
6+
command:
7+
- --log.filePath=/logs/traefik.log
8+
- --log.format=json
9+
10+
log_processor:
11+
build: .
12+
volumes:
13+
- log_volume:/input_logs
14+
- processed_logs:/logs
15+
command: tail -F /input_logs/traefik.log | python /app/process_logs.py
16+
volumes:
17+
log_volume:
18+
processed_logs:

0 commit comments

Comments
 (0)