mirror of
https://github.com/arkorty/Reduce.git
synced 2026-03-17 16:41:42 +00:00
fixes
This commit is contained in:
14
backend.deploy.yml
Normal file
14
backend.deploy.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
backend:
|
||||||
|
image: reduce:latest
|
||||||
|
container_name: reduce-backend
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8081:8080"
|
||||||
|
environment:
|
||||||
|
DB_PATH: /app/data/reduce.db
|
||||||
|
BASE_URL: ${BASE_URL}
|
||||||
|
volumes:
|
||||||
|
- reduce:/app/data
|
||||||
|
volumes:
|
||||||
|
reduce:
|
||||||
@@ -5,6 +5,7 @@ services:
|
|||||||
DB_PATH: /data/reduce.db
|
DB_PATH: /data/reduce.db
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
|
platform: linux/amd64
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
networks:
|
networks:
|
||||||
41
deploy.patch
41
deploy.patch
@@ -1,41 +0,0 @@
|
|||||||
diff --git a/docker-compose.yml b/docker-compose.yml
|
|
||||||
index 15d2ebf..18c00aa 100644
|
|
||||||
--- a/docker-compose.yml
|
|
||||||
+++ b/docker-compose.yml
|
|
||||||
@@ -8,11 +8,11 @@ services:
|
|
||||||
DB_NAME: urlshortener
|
|
||||||
DB_PASSWORD: password
|
|
||||||
ports:
|
|
||||||
- - "8080:8080"
|
|
||||||
+ - "8081:8080"
|
|
||||||
depends_on:
|
|
||||||
- postgres
|
|
||||||
networks:
|
|
||||||
- - docker
|
|
||||||
+ - docker2
|
|
||||||
|
|
||||||
postgres:
|
|
||||||
image: postgres:latest
|
|
||||||
@@ -22,9 +22,9 @@ services:
|
|
||||||
POSTGRES_USER: user
|
|
||||||
POSTGRES_PASSWORD: password
|
|
||||||
ports:
|
|
||||||
- - "5432:5432"
|
|
||||||
+ - "5433:5432"
|
|
||||||
networks:
|
|
||||||
- - docker
|
|
||||||
+ - docker2
|
|
||||||
|
|
||||||
frontend:
|
|
||||||
build: ./frontend
|
|
||||||
@@ -35,8 +35,8 @@ services:
|
|
||||||
depends_on:
|
|
||||||
- backend
|
|
||||||
networks:
|
|
||||||
- - docker
|
|
||||||
+ - docker2
|
|
||||||
|
|
||||||
networks:
|
|
||||||
- docker:
|
|
||||||
+ docker2:
|
|
||||||
driver: bridge
|
|
||||||
9
frontend/vercel.json
Normal file
9
frontend/vercel.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"buildCommand": "bun --cwd frontend install && bun --cwd frontend run build",
|
||||||
|
"outputDirectory": "frontend/dist",
|
||||||
|
"framework": "vite",
|
||||||
|
"cleanUrls": true,
|
||||||
|
"rewrites": [
|
||||||
|
{ "source": "/:path*", "destination": "/index.html" }
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user