Created
August 14, 2022 13:18
-
-
Save Ivesvdf/ffae5a8db9e542d9272e26f85b0cfb70 to your computer and use it in GitHub Desktop.
Template for docker compose files which does not create random bridge interfaces, specifies user for security and restarts always and uses the specified IP range
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
grafana: | |
container_name: grafana | |
image: grafana/grafana-oss:9.0.6 | |
volumes: | |
- ./grafana/etc:/etc/grafana:ro | |
- grafana-lib:/var/lib/grafana | |
- grafana-log:/var/log/grafana | |
links: | |
- influxdb:influxdb | |
env_file: | |
- ./grafana.env | |
ports: | |
- "10.40.0.60:80:3000/tcp" | |
depends_on: | |
- influxdb | |
restart: always | |
user: "1000:100" | |
volumes: | |
grafana-lib: | |
external: false | |
grafana-log: | |
external: false | |
networks: | |
default: | |
driver: bridge | |
driver_opts: | |
com.docker.network.bridge.name: br-grafana | |
ipam: | |
driver: default | |
config: | |
- subnet: "10.199.55.16/28" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment