This commit is contained in:
2026-05-28 20:44:41 +02:00
parent 4213478c94
commit 946946622e
2 changed files with 47 additions and 12 deletions
+19 -4
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,7 +24,21 @@ services:
ports:
- "8080:8080"
volumes:
- listhub_data:/app
- 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
ports:
- "8000:8000"
volumes:
- listhub_frontend_data:/app
loki:
image: grafana/loki:2.9.2
container_name: loki
@@ -39,11 +53,12 @@ services:
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin # Hasło do pierwszego logowania
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- loki
restart: unless-stopped
volumes:
postgres_data:
listhub_data:
listhub_backend_data:
listhub_frontend_data:
+20
View File
@@ -0,0 +1,20 @@
<configuration>
<appender name="LOKI" class="com.github.loki4j.logback.Loki4jAppender">
<http>
<url>http://loki:3100/loki/api/v1/push</url>
</http>
<format>
<label>
<pattern>app=backend,host=${HOSTNAME},level=%level</pattern>
</label>
<message>
<pattern>%l %msg</pattern>
</message>
</format>
</appender>
<root level="INFO">
<appender-ref ref="LOKI" />
<appender-ref ref="CONSOLE" />
</root>
</configuration>