Last active
August 22, 2022 16:08
-
-
Save tanmay-bhat/804410dcbcf89f5e837946543300e80a to your computer and use it in GitHub Desktop.
Docker compose file to create Grafana containers stack behing Nginx proxy
This file contains hidden or 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' | |
services: | |
grafana: | |
image: grafana/grafana:9.0.7 | |
expose: | |
- "3000" | |
environment: | |
- GF_DATABASE_NAME=grafana | |
- GF_DATABASE_USER=postgres | |
- GF_DATABASE_PASSWORD=super-secret-password | |
- GF_DATABASE_TYPE=postgres | |
- GF_DATABASE_HOST=host.docker.internal:5432 | |
deploy: | |
replicas: 2 | |
nginx: | |
image: nginx:latest | |
container_name: nginx | |
volumes: | |
- './nginx.conf:/etc/nginx/nginx.conf' | |
depends_on: | |
- grafana | |
ports: | |
- "8000:8000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment