using environment variables
This commit is contained in:
@@ -13,8 +13,13 @@ services:
|
||||
promtail:
|
||||
image: grafana/promtail
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./promtail:/etc/promtail
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /var/log:/var/log:ro
|
||||
command: -config.file=/etc/promtail/promtail-config.yml
|
||||
command: [
|
||||
"-config.file=/etc/promtail/promtail-config.yml",
|
||||
"-config.expand-env=true"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user