diff --git a/docker-compose.yaml b/docker-compose.yaml index 49005c9..f9d68ad 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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 @@ -34,16 +48,17 @@ services: 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 + image: grafana/grafana:latest + container_name: grafana + ports: + - "3000:3000" + environment: + - GF_SECURITY_ADMIN_PASSWORD=admin + depends_on: + - loki + restart: unless-stopped volumes: postgres_data: - listhub_data: + listhub_backend_data: + listhub_frontend_data: \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..1a06109 --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,20 @@ + + + + http://loki:3100/loki/api/v1/push + + + + + %l %msg + + + + + + + + + \ No newline at end of file