fix: Finally fix deployment, add test compose.yml
This commit is contained in:
parent
0985961d97
commit
741a509ef6
4 changed files with 26 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -40,4 +40,5 @@ yarn-error.log*
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
local.db
|
*.db
|
||||||
|
data/
|
||||||
|
|
|
||||||
2
.npmrc
2
.npmrc
|
|
@ -1 +1 @@
|
||||||
public-hoist-pattern[]=*libsql*
|
public-hoist-pattern[]=*@libsql*
|
||||||
|
|
|
||||||
19
compose.yml
Normal file
19
compose.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
services:
|
||||||
|
inffo2:
|
||||||
|
container_name: inffo2
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
DB_FILE_NAME: ${DB_FILE_NAME}
|
||||||
|
environment:
|
||||||
|
AUTH_SECRET: ${AUTH_SECRET}
|
||||||
|
AUTH_GITHUB_ID: ${AUTH_GITHUB_ID}
|
||||||
|
AUTH_GITHUB_SECRET: ${AUTH_GITHUB_SECRET}
|
||||||
|
DB_FILE_NAME: ${DB_FILE_NAME}
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: ./data/data.db
|
||||||
|
target: /app/data.db
|
||||||
|
|
@ -3,7 +3,10 @@ import type { NextConfig } from "next";
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
outputFileTracingIncludes: {
|
outputFileTracingIncludes: {
|
||||||
"*": ["node_modules/@libsql/**/*", "node_modules/libsql/**/*"],
|
"./**/*": [
|
||||||
|
"./node_modules/@libsql/darwin*/**/*",
|
||||||
|
"./node_modules/@libsql/linux*/**/*",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue