Skip to content

Commit 86302e9

Browse files
committed
Move promtail to the default docker-compose.yml
1 parent 557ce5d commit 86302e9

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,20 @@ services:
204204
- ./data/loki:/opt/loki
205205
restart: unless-stopped
206206

207+
promtail:
208+
image: grafana/promtail:${PROMTAIL_VERSION:-2.8.2}
209+
environment:
210+
CHARON_LOKI_ADDRESSES: ${CHARON_LOKI_ADDRESSES}
211+
CLUSTER_NAME: ${CLUSTER_NAME}
212+
CLUSTER_PEER: ${CLUSTER_PEER}
213+
command: -config.file=/etc/promtail/config.yml
214+
volumes:
215+
- ./promtail:/etc/promtail
216+
- /var/run/docker.sock:/var/run/docker.sock
217+
networks: [dvnode]
218+
entrypoint: /etc/promtail/run.sh
219+
restart: unless-stopped
220+
207221
# _ _ _ _ _ _
208222
# __ ____ _| (_) __| | __ _| |_ ___ _ __ ___ (_) ___ ___| |_ ___ _ __
209223
# \ \ / / _` | | |/ _` |/ _` | __/ _ \| '__|____ / _ \| |/ _ \/ __| __/ _ \| '__|

logging.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)