-
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.
- Loading branch information
Showing
11 changed files
with
179 additions
and
1,746 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,27 @@ | ||
up: | ||
docker compose up -d | ||
|
||
down: | ||
docker compose down -v | ||
|
||
delete: | ||
docker compose down -v --rmi all | ||
|
||
build: | ||
docker compose build --no-cache | ||
|
||
delPm2: | ||
pm2 delete deployt-docker-orch | ||
|
||
pm2Logs: | ||
pm2 logs deployt-docker-orch | ||
|
||
start: | ||
make delPm2 && \ | ||
cd docker-builder && make build && \ | ||
cd ../docker-orch && pm2 start npm --name "deployt-docker-orch" -- start \ | ||
cd .. && docker compose up -d | ||
|
||
stop: | ||
make down && \ | ||
pm2 stop deployt-docker-orch |
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,47 @@ | ||
# Node modules | ||
node_modules | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Environment variables | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# Editor directories and files | ||
.vscode | ||
.idea | ||
*.swp | ||
*.swo | ||
|
||
# OS generated files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Test coverage | ||
coverage | ||
|
||
# Temporary files | ||
*.tmp | ||
*.temp | ||
|
||
# Prisma | ||
prisma/*.db | ||
|
||
# Debug files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Build files | ||
out | ||
|
||
# Misc | ||
README.md |
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,17 @@ | ||
FROM node:18-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm ci | ||
|
||
COPY . . | ||
|
||
RUN npx prisma generate | ||
|
||
RUN npm run build | ||
|
||
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
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
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 |
---|---|---|
@@ -1,33 +1,30 @@ | ||
services: | ||
|
||
postgres: | ||
container_name: deployit-postgres | ||
image: postgres | ||
core: | ||
build: | ||
context: ./core | ||
dockerfile: Dockerfile | ||
ports: | ||
- "5432:5432" | ||
- "3000:3000" | ||
depends_on: | ||
- redis | ||
env_file: | ||
- ./core/.env | ||
volumes: | ||
- postgres_data_dwl:/var/lib/postgresql/data | ||
pgweb: | ||
container_name: deployit-pgweb | ||
restart: always | ||
image: sosedoff/pgweb | ||
|
||
proxy-server: | ||
build: | ||
context: ./proxy-server | ||
dockerfile: Dockerfile | ||
ports: | ||
- "8002:8081" | ||
links: | ||
- postgres:postgres | ||
env_file: | ||
- ./core/.env | ||
- "8000:8000" | ||
depends_on: | ||
- postgres | ||
redis-stack: | ||
container_name: deployit-redis-stack | ||
- redis | ||
env_file: | ||
- ./proxy-server/.env | ||
|
||
redis: | ||
container_name: deployit-redis | ||
image: redis/redis-stack:latest | ||
ports: | ||
- "6379:6379" | ||
- "8001:8001" | ||
restart: always | ||
|
||
volumes: | ||
postgres_data_dwl: |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"name": "deployit-docker-orch", | ||
"devDependencies": { | ||
"@types/dockerode": "^3.3.31", | ||
"@types/pg": "^8.11.10", | ||
|
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,39 @@ | ||
# Node modules | ||
node_modules | ||
|
||
# Logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Environment variables | ||
.env | ||
|
||
# Editor directories and files | ||
.vscode | ||
.idea | ||
*.swp | ||
*.swo | ||
|
||
# OS generated files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Test coverage | ||
coverage | ||
|
||
# Temporary files | ||
*.tmp | ||
*.temp | ||
|
||
# Debug files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# TypeScript config and other config files | ||
tsconfig.json | ||
.eslintrc.json | ||
.prettierrc | ||
|
||
# Misc | ||
README.md |
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:18-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
EXPOSE 8000 | ||
|
||
CMD ["node", "src/index.js"] |
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
Oops, something went wrong.