Skip to content

Commit

Permalink
feat: push docker log to loki
Browse files Browse the repository at this point in the history
  • Loading branch information
z0z0r4 committed Jan 30, 2025
1 parent 46ae0e6 commit 0388044
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
x-logging: &default-logging
driver: "local"
# x-logging: &default-logging
# driver: "local"
# options:
# max-size: "20m"
# max-file: "3"

x-logging: &loki-logging
driver: loki
options:
max-size: "20m"
max-file: "3"
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "50m"
max-file: "10"
keep-file: true


services:
mcim_schedule_sync:
Expand All @@ -18,7 +27,7 @@ services:
- ./config.json:/app/config.json
command: >
sh -c "python start.py"
logging: *default-logging
logging: *loki-logging
deploy:
resources:
limits:
Expand Down

0 comments on commit 0388044

Please sign in to comment.