Created
November 17, 2025 20:46
-
-
Save alperreha/9ec46a7f3eed9b4fa7f279c20f38719f to your computer and use it in GitHub Desktop.
Simple grafana and postgres data manipulation plugin example docker-compose.yaml
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.8' | |
| services: | |
| # postgresql service - `psql -h localhost -U user -d postgres` | |
| postgresqlapp: | |
| # Defualt Postgres Image - image: postgres:15.2-alpine | |
| # image: pgvector/pgvector:pg15-bookworm | |
| image: postgres:15.2-alpine | |
| networks: | |
| - aifnnet | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - ./volumes/postgres:/var/lib/postgresql/data | |
| environment: | |
| - POSTGRES_USER=user | |
| - POSTGRES_PASSWORD=pass | |
| - POSTGRES_DB=postgres | |
| - PGDATA=/var/lib/postgresql/data/pgdata | |
| restart: always | |
| healthcheck: | |
| test: pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB" | |
| interval: 10s | |
| timeout: 2s | |
| retries: 10 | |
| # pgadmin service | |
| pgadminapp: | |
| image: dpage/pgadmin4:9.7.0 | |
| networks: | |
| - aifnnet | |
| ports: | |
| - "5050:80" | |
| environment: | |
| - PGADMIN_DEFAULT_EMAIL=user@domain.com | |
| - PGADMIN_DEFAULT_PASSWORD=1020304050 | |
| restart: always | |
| profiles: | |
| - dev | |
| grafanaapp: | |
| image: grafana/grafana:12.4.0-19363970803-ubuntu | |
| container_name: grafana-demo | |
| networks: | |
| - aifnnet | |
| ports: | |
| - "3000:3000" | |
| environment: | |
| - GF_SECURITY_ADMIN_USER=admin | |
| - GF_SECURITY_ADMIN_PASSWORD=admin | |
| # Türkçe timezone örneği | |
| - GF_DATE_FORMATS_DEFAULT_TIMEZONE=Europe/Istanbul | |
| # 🔽 Plugin burası | |
| - GF_INSTALL_PLUGINS=volkovlabs-form-panel | |
| volumes: | |
| - ./volumes/grafana:/var/lib/grafana | |
| restart: always | |
| depends_on: | |
| postgresqlapp: | |
| condition: service_healthy | |
| networks: | |
| aifnnet: | |
| name: aifnnet | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment