fix: docker-compose up command fails (#227)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
node_modules/
|
||||
coverage/
|
||||
.env
|
||||
database.sqlite
|
||||
/test-results/
|
||||
/playwright-report/
|
||||
/playwright-screenshots/
|
||||
|
||||
@@ -64,9 +64,6 @@ WORKDIR /app
|
||||
# Copy custom combined_server.js that combines frontend and backend
|
||||
COPY combined_server.js ./
|
||||
|
||||
# Switch to non-root user
|
||||
USER nextjs
|
||||
|
||||
# Expose the port
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
1
backend/.gitignore
vendored
1
backend/.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
node_modules/
|
||||
.env
|
||||
database.sqlite
|
||||
public/uploads/
|
||||
|
||||
18
backend/config/config.js
Normal file
18
backend/config/config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const path = require('path');
|
||||
|
||||
const databasePath = path.resolve(__dirname, '../../database/database.sqlite');
|
||||
|
||||
module.exports = {
|
||||
development: {
|
||||
dialect: 'sqlite',
|
||||
storage: databasePath,
|
||||
},
|
||||
test: {
|
||||
dialect: 'sqlite',
|
||||
storage: databasePath,
|
||||
},
|
||||
production: {
|
||||
dialect: 'sqlite',
|
||||
storage: databasePath,
|
||||
}
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"development": {
|
||||
"dialect": "sqlite",
|
||||
"storage": "database/database.sqlite"
|
||||
},
|
||||
"test": {
|
||||
"dialect": "sqlite",
|
||||
"storage": "database/database.sqlite"
|
||||
},
|
||||
"production": {
|
||||
"dialect": "sqlite",
|
||||
"storage": "../database/database.sqlite"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
unittcms:
|
||||
image: unittcms:latest
|
||||
build: .
|
||||
ports:
|
||||
- '8000:8000'
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user