mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
ci: PORT=7331, remove vercel
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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"]
|
||||
|
||||
23
README.md
23
README.md
@@ -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/>
|
||||
|
||||
[](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:
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "7331:7331"
|
||||
environment:
|
||||
- UPLOAD_PATH=/app/uploads
|
||||
- NODE_ENV=production
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user