fix: docker-compose up command fails (#227)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
coverage/
|
coverage/
|
||||||
.env
|
.env
|
||||||
|
database.sqlite
|
||||||
/test-results/
|
/test-results/
|
||||||
/playwright-report/
|
/playwright-report/
|
||||||
/playwright-screenshots/
|
/playwright-screenshots/
|
||||||
|
|||||||
@@ -64,9 +64,6 @@ WORKDIR /app
|
|||||||
# Copy custom combined_server.js that combines frontend and backend
|
# Copy custom combined_server.js that combines frontend and backend
|
||||||
COPY combined_server.js ./
|
COPY combined_server.js ./
|
||||||
|
|
||||||
# Switch to non-root user
|
|
||||||
USER nextjs
|
|
||||||
|
|
||||||
# Expose the port
|
# Expose the port
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
|||||||
1
backend/.gitignore
vendored
1
backend/.gitignore
vendored
@@ -1,4 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
.env
|
.env
|
||||||
database.sqlite
|
|
||||||
public/uploads/
|
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:
|
services:
|
||||||
unittcms:
|
unittcms:
|
||||||
image: unittcms:latest
|
image: unittcms:latest
|
||||||
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- '8000:8000'
|
- '8000:8000'
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user