Skip to content

Commit

Permalink
[Feature]
Browse files Browse the repository at this point in the history
* Issue template
* Pull request template
* Makefile
* Docker-compose
  • Loading branch information
younganswer committed Jan 5, 2024
1 parent f7400a3 commit b893b3f
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/task-템플릿.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Task 템플릿
about: 새로운 Task 등록
title: "[Feat] 작업내용"
labels: ''
assignees: ''

---

> ### ISSUE
> * Type: `Feature`, `Fix`, `Test`
> * Detail: Fix actions from client redux
>
> ### TODO
> 1. [ ] Job1
> 2. [ ] Job2
> 3. [ ] Job3
>
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## 📌 개요 <!-- PR내용에 대해 축약해서 적어주세요. -->
-
## 💻 작업사항 <!-- PR내용에 대해 상세설명이 필요하다면 이 부분에 기재 해주세요. -->
-
## ✅ 변경로직 <!-- 고친 사항을 적어주세요. 재PR 시에만 사용해 주세요! (재PR 아닌 경우 삭제) -->
-
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
DOCKER_COMPOSE = docker compose -f ./src/docker-compose.yml

up:
@${DOCKER_COMPOSE} up --build -d

down:
@${DOCKER_COMPOSE} down

start:
@${DOCKER_COMPOSE} start

stop:
@${DOCKER_COMPOSE} stop

logs:
@${DOCKER_COMPOSE} logs

prune:
@docker system prune -af 2>/dev/null || true

.PHONY: up down stop start fclean

.NOTPARALLEL: up down stop start fclean
91 changes: 91 additions & 0 deletions src/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
version: "3.9"

services:
mongodb:
container_name: mongodb
image: mongodb
build:
context: ./service/mongodb
dockerfile: Dockerfile
env_file:
- ./service/mongodb/.env
volumes:
- mongodb_volume:/data/db
networks:
- hey_listen_to_this
restart: unless-stopped
tty: true
nestjs:
container_name: nestjs
build:
context: ./service/nestjs
dockerfile: Dockerfile
env_file:
- ./service/nestjs/.env
volumes:
- nestjs_src_volume:/app/src
networks:
- hey_listen_to_this
restart: unless-stopped
tty: true
depends_on:
- mongodb
nextjs:
container_name: nextjs
build:
context: ./service/nextjs
dockerfile: Dockerfile
env_file:
- ./service/nextjs/.env
volumes:
- nextjs_src_volume:/app/src
networks:
- hey_listen_to_this
restart: unless-stopped
tty: true
depends_on:
- nestjs
nginx:
container_name: nginx
build:
context: ./service/nginx
dockerfile: Dockerfile
env_file:
- ./service/nginx/.env
ports:
- 80:80
- 443:443
networks:
- hey_listen_to_this
restart: unless-stopped
tty: true
depends_on:
- nextjs

volumes:
mongodb_volume:
name: mongodb_volume
driver: local
driver_opts:
type: none
o: bind
device: ./service/mongodb/db
nestjs_src_volume:
name: nestjs_src_volume
driver: local
driver_opts:
type: none
o: bind
device: ./service/nestjs/src
nextjs_src_volume:
name: nextjs_src_volume
driver: local
driver_opts:
type: none
o: bind
device: ./service/nextjs/src

networks:
hey_listen_to_this:
name: hey_listen_to_this
driver: bridge

0 comments on commit b893b3f

Please sign in to comment.