ci: PORT=7331, remove vercel

This commit is contained in:
Vasily Zubarev
2025-03-21 19:40:38 +01:00
parent 88c6aee5b9
commit 5d4816180e
7 changed files with 11 additions and 27 deletions

View File

@@ -1,3 +1,4 @@
PORT=7331
UPLOAD_PATH="./uploads"
DATABASE_URL="file:./db.sqlite"
PROMPT_ANALYSE_NEW_FILE="You are an accountant and invoice analysis assistant.

View File

@@ -1,6 +1,7 @@
FROM node:23-slim AS base
# Default environment variables
ENV PORT=7331
ENV UPLOAD_PATH=/app/uploads
ENV NODE_ENV=production
ENV DATABASE_URL=file:/app/data/db.sqlite
@@ -57,7 +58,7 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Create directory for SQLite database and set permissions
RUN mkdir -p /app/data
EXPOSE 3000
EXPOSE 7331
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["npm", "start"]

View File

@@ -105,24 +105,7 @@ Once all documents have been uploaded and analyzed, you can view, filter and exp
## 🛳 Deploying or Self-hosting
TaxHacker can be self-hosted on your own infrastructure for complete control over your data and application environment. If you don't have your own server, you can use Vercel to quickly deploy the app just for yourself.
### `A` Deploying with Vercel
Deploy your own instance of TaxHacker with Vercel in just a few clicks:
1. Prepare your [OpenAI API Key](https://platform.openai.com/settings/organization/api-keys) for the AI features
2. Click the deploy button below
3. Configure your environment variables in the Vercel dashboard
4. (Optional) Connect your custom domain
<br/>
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvas3k%2FTaxHacker&project-name=TaxHacker&repository-name=TaxHacker)
### `B` Deploying with Docker
For server deployment, we provide a [Docker image](./Dockerfile) and [Docker Compose](./docker-compose.yml) files that makes setting up TaxHacker simple:
TaxHacker can be self-hosted on your own infrastructure for complete control over your data and application environment. We provide a [Docker image](./Dockerfile) and [Docker Compose](./docker-compose.yml) files that makes setting up TaxHacker simple:
```bash
curl -O https://raw.githubusercontent.com/vas3k/TaxHacker/main/docker-compose.yml
@@ -139,7 +122,7 @@ services:
app:
image: ghcr.io/vas3k/taxhacker:latest
ports:
- "3000:3000"
- "7331:7331"
environment:
- UPLOAD_PATH=/app/uploads
- NODE_ENV=production
@@ -193,7 +176,7 @@ npm run seed
npm run dev
```
Visit `http://localhost:3000` to see your local instance of TaxHacker.
Visit `http://localhost:7331` to see your local instance of TaxHacker.
For a production build, instead of `npm run dev` use the following commands:

View File

@@ -4,7 +4,7 @@ services:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
- "7331:7331"
environment:
- UPLOAD_PATH=/app/uploads
- NODE_ENV=production

View File

@@ -18,7 +18,7 @@ services:
- "traefik.http.routers.taxhacker.entrypoints=https"
- "traefik.http.routers.taxhacker.tls.certresolver=cloudflare"
- "traefik.http.routers.taxhacker.rule=Host(`tax.vas3k.cloud`)"
- "traefik.http.services.taxhacker.loadBalancer.server.port=3000"
- "traefik.http.services.taxhacker.loadBalancer.server.port=7331"
- "traefik.docker.network=traefik"
logging:
driver: "local"
@@ -45,7 +45,7 @@ services:
- "traefik.http.routers.snektax.entrypoints=https"
- "traefik.http.routers.snektax.tls.certresolver=cloudflare"
- "traefik.http.routers.snektax.rule=Host(`snektax.vas3k.cloud`)"
- "traefik.http.services.snektax.loadBalancer.server.port=3000"
- "traefik.http.services.snektax.loadBalancer.server.port=7331"
- "traefik.docker.network=traefik"
logging:
driver: "local"
@@ -56,4 +56,3 @@ services:
networks:
traefik:
external: true

View File

@@ -2,7 +2,7 @@ services:
app:
image: ghcr.io/vas3k/taxhacker:latest
ports:
- "3000:3000"
- "7331:7331"
environment:
- UPLOAD_PATH=/app/uploads
- NODE_ENV=production

View File

@@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "next dev --turbopack",
"dev": "next dev -p 7331 --turbopack",
"build": "prisma generate && next build",
"start": "prisma migrate deploy && npm run seed && next start",
"lint": "next lint",