working state of application
This commit is contained in:
@@ -14,7 +14,7 @@ CSRF_SECRET=a5458481e4903286e26f4332751a9446
|
|||||||
PORT=8080
|
PORT=8080
|
||||||
|
|
||||||
# Absolute path where bare git repositories are stored on disk
|
# Absolute path where bare git repositories are stored on disk
|
||||||
REPO_ROOT=/Users/edwardrangel/Documents/Projects/ForgeBucket/.repos
|
REPO_ROOT=/var/lib/forgebucket/repos
|
||||||
|
|
||||||
# ─── Federation (ActivityPub) ─────────────────────────────────────────────────
|
# ─── Federation (ActivityPub) ─────────────────────────────────────────────────
|
||||||
# Public URL of this instance (no trailing slash)
|
# Public URL of this instance (no trailing slash)
|
||||||
|
|||||||
+3
-3
@@ -1,14 +1,14 @@
|
|||||||
# ── Stage 1: Build frontend ───────────────────────────────────────────────────
|
# ── Stage 1: Build frontend ───────────────────────────────────────────────────
|
||||||
FROM node:22-alpine AS frontend-builder
|
FROM node:22-alpine AS frontend-builder
|
||||||
WORKDIR /app/frontend
|
WORKDIR /app/frontend
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm@10.33.4
|
||||||
COPY frontend/package.json frontend/pnpm-lock.yaml ./
|
COPY frontend/package.json frontend/pnpm-lock.yaml ./
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
COPY frontend/ ./
|
COPY frontend/ ./
|
||||||
RUN pnpm build
|
RUN NODE_OPTIONS=--max-old-space-size=2048 pnpm build
|
||||||
|
|
||||||
# ── Stage 2: Build Go binary ──────────────────────────────────────────────────
|
# ── Stage 2: Build Go binary ──────────────────────────────────────────────────
|
||||||
FROM golang:1.24-alpine AS go-builder
|
FROM golang:1.26-alpine AS go-builder
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|||||||
@@ -2,14 +2,14 @@ version: "3.9"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:18.3
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: forgebucket
|
POSTGRES_DB: forgebucket
|
||||||
POSTGRES_USER: forgebucket
|
POSTGRES_USER: forgebucket
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?required}
|
POSTGRES_PASSWORD: forgebucket
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U forgebucket"]
|
test: ["CMD-SHELL", "pg_isready -U forgebucket"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -24,7 +24,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgres://forgebucket:${POSTGRES_PASSWORD}@postgres:5432/forgebucket?sslmode=disable
|
DATABASE_URL: postgres://forgebucket:forgebucket@postgres:5432/forgebucket?sslmode=disable
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useState, useEffect, useRef, useCallback } from 'react'
|
import { useState, useEffect, useRef } from 'react'
|
||||||
import { Link, useNavigate } from 'react-router-dom'
|
import { Link, useNavigate } from 'react-router-dom'
|
||||||
import { useAuth } from '../contexts/AuthContext'
|
import { useAuth } from '../contexts/AuthContext'
|
||||||
import { useDashboard } from '../api/queries/dashboard'
|
import { useDashboard } from '../api/queries/dashboard'
|
||||||
|
|||||||
Reference in New Issue
Block a user