Files
docker/docker-compose.yaml
2026-05-25 23:25:08 +02:00

50 lines
1.1 KiB
YAML

services:
db:
image: postgres
restart: unless-stopped
environment:
POSTGRES_DB: listhub
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
listhub_backend:
build: '../backend'
restart: unless-stopped
depends_on:
- db
environment:
DB_URL: jdbc:postgresql://db:5432/listhub
DB_USER: postgres
DB_PASS: postgres
JWT_SECRET: awdpokawodjawoidjawidjoij120391829d3j8a0jd8s9dawd
ports:
- "8080:8080"
volumes:
- listhub_data:/app
loki:
image: grafana/loki:2.9.2
container_name: loki
ports:
- "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_data: