FDLogUp/docker-compose.yml
2024-06-20 20:01:32 -05:00

35 lines
759 B
YAML

services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
ports:
- '5432:5432'
environment:
POSTGRES_PASSWORD: fdlogup
POSTGRES_USER: fdlogup
POSTGRES_DB: fdlogup
volumes:
- "postgres:/var/lib/postgresql/data"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fdlogup -d fdlogup"]
interval: "10s"
timeout: "5s"
retries: 5
start_period: "5s"
grafana:
image: grafana/grafana:latest
restart: unless-stopped
ports:
- '3000:3000'
depends_on:
postgres:
condition: service_healthy
environment:
- GF_INSTALL_PLUGINS=orchestracities-map-panel
volumes:
- ./grafana:/var/lib/grafana
volumes:
postgres:
grafana: