Fixed prometheus persistant storage (fix needed to store on disk)

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2023-05-11 16:26:49 +02:00
parent ef01f7edeb
commit 8586a3a59d
4 changed files with 16 additions and 10 deletions

View File

@@ -439,11 +439,12 @@ services:
networks:
- net
environment:
- PUID={{ puid }}
- PGID={{ pgid}}
- PUID={{ prometheus_puid }}
- PGID={{ prometheus_pgid}}
- TZ={{ timezone }}
volumes:
- {{ prometheus_config }}:/etc/prometheus/
- prometheus_data:/prometheus/
ports:
- {{ prometheus_port }}:9090
labels:
@@ -486,3 +487,5 @@ networks:
driver: default
config:
- subnet: {{ docker_network }}
volumes:
prometheus_data: {}