FDLogUp/docker-compose.yml

35 lines
759 B
YAML
Raw Normal View History

2024-06-20 21:01:32 -04:00
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: