fix: docker-compose up command fails (#227)

This commit is contained in:
kimatata
2025-05-25 08:56:43 +09:00
committed by GitHub
parent 575c4cbedb
commit 13e0727914
6 changed files with 20 additions and 20 deletions

1
.gitignore vendored
View File

@@ -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/

View File

@@ -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
View File

@@ -1,4 +1,3 @@
node_modules/ node_modules/
.env .env
database.sqlite
public/uploads/ public/uploads/

18
backend/config/config.js Normal file
View 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,
}
};

View File

@@ -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"
}
}

View File

@@ -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: