PR: loki and grafana in backend part of docker compose #1

Merged
hamx merged 1 commits from dolozone into main 2026-05-29 21:33:25 +00:00
2 changed files with 26 additions and 16 deletions
Showing only changes of commit d67509a0ff - Show all commits
+20 -16
View File
@@ -12,7 +12,7 @@ services:
- postgres_data:/var/lib/postgresql/data
listhub_backend:
build: ./backend
build: '../backend'
restart: unless-stopped
depends_on:
- db
@@ -24,22 +24,26 @@ services:
ports:
- "8080:8080"
volumes:
- listhub_backend_data:/app
listhub_frontend:
build:
context: ./frontend
args:
VITE_API_URL: http://localhost:8080/api/v1
restart: unless-stopped
depends_on:
- listhub_backend
- listhub_data:/app
loki:
image: grafana/loki:2.9.2
container_name: loki
ports:
- "8000:8000"
volumes:
- listhub_frontend_data:/app
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
restart: unless-stopped
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin # Hasło do pierwszego logowania
depends_on:
- loki
restart: unless-stopped
volumes:
postgres_data:
listhub_backend_data:
listhub_frontend_data:
listhub_data:
+6
View File
@@ -0,0 +1,6 @@
{
"name": "docker",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}