-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/KinanaDB/Platform-Backend
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Enforce Policy for Main Branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
enforce_policy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check if push is to main and force push | ||
if: > | ||
github.ref == 'refs/heads/main' && | ||
github.event_name == 'push' && | ||
github.event.pull_request == null && | ||
!contains(github.event.head_commit.message, '[force]') | ||
run: | ||
echo "Warning: Direct pushes to the main branch without force are not recommended. Please use pull requests for code review." | ||
exit 1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:20.10.0 | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: '3.8' | ||
|
||
services: | ||
# Node.js App | ||
node-app: | ||
build: . | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- .:/app | ||
environment: | ||
- NODE_ENV=development | ||
- PORT=3000 | ||
command: npm start | ||
|
||
# PostgreSQL Database | ||
postgres: | ||
image: "postgres:latest" | ||
container_name: "postgres" | ||
environment: | ||
POSTGRES_USER: "postgres" | ||
POSTGRES_PASSWORD: "postgres" | ||
POSTGRES_DB: "postgres" | ||
ports: | ||
- "5432:5432" |