Skip to content

Commit

Permalink
Added volume to ad persistency to Grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoGuideri committed Nov 7, 2024
1 parent 5e30339 commit 444dcb3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ services:
build: .
ports:
- "${HOST_PHP_PORT}:80"
env_file:
- .env
depends_on:
db:
condition: service_healthy
env_file:
- .env

db:
image: mysql:8.0
Expand All @@ -22,6 +22,20 @@ services:
volumes:
- db_data:/var/lib/mysql

grafana:
image: grafana/grafana
restart: unless-stopped
ports:
- "3000:3000"
env_file:
- .env
volumes:
- grafana_data:/var/lib/grafana
depends_on:
db:
condition: service_healthy

volumes:
db_data:
grafana_data:

0 comments on commit 444dcb3

Please sign in to comment.