Files
docker/docker-compose.yaml
2026-05-30 00:00:45 +02:00

64 lines
1.4 KiB
YAML

services:
db:
image: postgres:17
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
listhub_frontend:
build:
context: ./frontend
restart: unless-stopped
environment:
VITE_API_URL: http://localhost:8080/api/v1
depends_on:
- listhub_backend
ports:
- "8000:8000"
volumes:
- listhub_frontend_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:
listhub_frontend_data: