Skip to content

Commit

Permalink
setting uid and gid on containers
Browse files Browse the repository at this point in the history
  • Loading branch information
harikrishnan83 committed Sep 7, 2021
1 parent 3c5b5e0 commit c81f6b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
- ./prometheus-metrics-monitor/grafana/provisioning:/etc/grafana/provisioning
networks:
- perfiz-network
user: "${UID}:${GID}"
prometheus:
image: "prom/prometheus"
ports:
Expand All @@ -25,6 +26,7 @@ services:
- cadvisor
networks:
- perfiz-network
user: "${UID}:${GID}"
cadvisor:
image: "google/cadvisor"
container_name: cadvisor
Expand All @@ -38,6 +40,7 @@ services:
- /var/lib/docker/:/var/lib/docker:ro
networks:
- perfiz-network
user: "${UID}:${GID}"
influxgraph:
environment:
INFLUXGRAPH_GUNICORN_LOGLEVEL: "debug"
Expand All @@ -50,6 +53,7 @@ services:
- "8000:80"
networks:
- perfiz-network
user: "${UID}:${GID}"
influxdb:
environment:
INFLUXDB_REPORTING_DISABLED: "true"
Expand All @@ -64,6 +68,7 @@ services:
- ${PROJECT_DIR}/perfiz/influxdb_data:/var/lib/influxdb
networks:
- perfiz-network
user: "${UID}:${GID}"

networks:
perfiz-network:
Expand Down

0 comments on commit c81f6b8

Please sign in to comment.