Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 BugFix : dev μ„œλ²„ 볡ꡬ #121

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
55a3017
fix:backcicd.yaml 도컀 μ»¨ν…Œμ΄λ„ˆλ₯Ό 내리고 λ‹€μ‹œ μ˜¬λ¦¬λ„λ‘ 변경함
yoonseopkim Nov 13, 2024
35c71cc
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Nov 13, 2024
2938a9e
fix:backcicd.yaml 도컀 컴포즈 yml μ—μ„œ yaml μˆ˜μ •
yoonseopkim Nov 13, 2024
204039e
fix:backcicd.yaml 도컀 컴포즈 yml μ—μ„œ yaml μˆ˜μ •
yoonseopkim Nov 14, 2024
5c5c588
fix:backcicd.yaml μ£Όμ„μ˜€λ₯˜ μˆ˜μ •
yoonseopkim Nov 14, 2024
be41d46
fix:backcicd.yaml μ£Όμ„μ˜€λ₯˜ μˆ˜μ •2
yoonseopkim Nov 14, 2024
b9f02b5
fix:backcicd.yaml dev1 νƒœκ·Έμ—μ„œ test 둜 λ³€κ²½
yoonseopkim Nov 14, 2024
ec56dd6
fix:backcicd.yaml μ½”λ“œ λ¦¬νŒ©ν† λ§
yoonseopkim Nov 15, 2024
e6b92f8
fix:backcicd.yaml μ•„ν‚€ν…μ²˜ ꡬ쑰에 맞게 ν• λ‹Ή μΈμŠ€ν„΄μŠ€ λ³€κ²½
yoonseopkim Nov 15, 2024
54bbc19
fix:backcicd.yaml 적용 브랜치 λ³€κ²½
yoonseopkim Nov 15, 2024
8252402
fix:backcicd.yaml ν™˜κ²½λ³€μˆ˜ μˆ˜μ •
yoonseopkim Nov 15, 2024
b1f7032
fix:backcicd.yaml ν™˜κ²½λ³€μˆ˜ μˆ˜μ •2
yoonseopkim Nov 15, 2024
78d5e3d
fix:backcicd.yaml ν™˜κ²½λ³€μˆ˜ μˆ˜μ •3
yoonseopkim Nov 15, 2024
fdc810c
fix:backcicd.yaml 각 λͺ¨λ“ˆλ³„ jobs 둜 뢄리
yoonseopkim Nov 15, 2024
0f0d496
fix:backcicd.yaml 멀버λͺ¨λ“ˆ ν…ŒμŠ€νŠΈ
yoonseopkim Nov 15, 2024
6878ce7
fix:backcicd.yaml 및 각 λ„μ»€νŒŒμΌμ— ν™˜κ²½λ³€μˆ˜ λ„£μ–΄μ„œ μ‹€ν–‰ ν…ŒμŠ€νŠΈ
yoonseopkim Nov 15, 2024
7e19ca9
fix:backcicd.yaml 전체λͺ¨λ“ˆ μ‹€ν–‰ ν…ŒμŠ€νŠΈ
yoonseopkim Nov 15, 2024
ce5bf27
fix:backcicd.yaml 전체λͺ¨λ“ˆ μ‹€ν–‰ ν…ŒμŠ€νŠΈ λ„μ»€νŒŒμΌ λŒ€λ¬Έμžλ‘œ λ³€κ²½
yoonseopkim Nov 15, 2024
a20343e
fix:backcicd.yaml json νŒŒμ‹±μœΌλ‘œ λ³€κ²½
yoonseopkim Nov 15, 2024
ffc1b80
fix:backcicd.yaml json νŒŒμ‹±μœΌλ‘œ λ³€κ²½2
yoonseopkim Nov 15, 2024
d6f94a1
fix:backcicd.yaml json νŒŒμ‹±μœΌλ‘œ λ³€κ²½3
yoonseopkim Nov 15, 2024
8ff49ea
fix:backcicd.yaml json νŒŒμ‹±μœΌλ‘œ λ³€κ²½4
yoonseopkim Nov 15, 2024
901f9bf
fix:backcicd.yaml json νŒŒμ‹±μœΌλ‘œ λ³€κ²½5
yoonseopkim Nov 15, 2024
d37623e
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Nov 15, 2024
5e85129
fix:backcicd.yaml 파일λͺ… μˆ˜μ •
yoonseopkim Nov 15, 2024
139f677
fix:backcicd.yaml λ„μ»€νŒŒμΌ 경둜 μˆ˜μ •
yoonseopkim Nov 15, 2024
78743e2
fix:backcicd.yaml λ„μ»€νŒŒμΌ 경둜 μˆ˜μ •2
yoonseopkim Nov 15, 2024
e5ce350
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Nov 17, 2024
d81a074
fix:backcicd.yaml ec2에 .env μ£Όμž…
yoonseopkim Nov 18, 2024
45d6b63
fix:backcicd.yaml ν™˜κ²½λ³€μˆ˜ μˆ˜μ •, 앱단 ν™˜κ²½λ³€μˆ˜ 였λ₯˜ μˆ˜μ •
yoonseopkim Nov 18, 2024
6d36643
fix:λ„μ»€νŒŒμΌ ν™˜κ²½λ³€μˆ˜ κ΄€λ ¨ μ„€μ •
yoonseopkim Nov 18, 2024
db2dda5
fix: member 도 env μ•ˆλ³΅μ‚¬ν•˜κ²Œ λ°”κΏˆ
yoonseopkim Nov 18, 2024
74854ca
fix: λ„μ»€νŒŒμΌ 볡ꡬ
yoonseopkim Nov 18, 2024
73421c9
fix: λ„μ»€νŒŒμΌ λ³€ν™˜κ²½λ³€μˆ˜ κ²½
yoonseopkim Nov 18, 2024
7f4702c
fix: λ„μ»€νŒŒμΌ λ³€ν™˜κ²½λ³€μˆ˜ κ²½2
yoonseopkim Nov 18, 2024
1c6ea1a
fix: λΉŒλ“œνƒ€μž„-> λŸ°νƒ€μž„ ν™˜κ²½λ³€μˆ˜ μ£Όμž… λ°©μ‹μœΌλ‘œ λ³€κ²½
yoonseopkim Nov 18, 2024
6867920
fix: λ„μ»€μ»΄ν¬μ¦ˆ μˆ˜μ •
yoonseopkim Nov 19, 2024
228b285
fix: λ„μ»€μ»΄ν¬μ¦ˆ μˆ˜μ •2
yoonseopkim Nov 19, 2024
47e7b8a
fix: λ„μ»€μ»΄ν¬μ¦ˆ μˆ˜μ •3
yoonseopkim Nov 19, 2024
1f46f5e
fix: λ„μ»€μ»΄ν¬μ¦ˆ μˆ˜μ •4
yoonseopkim Nov 19, 2024
af12fd7
fix: λ„μ»€μ»΄ν¬μ¦ˆ μˆ˜μ •5
yoonseopkim Nov 19, 2024
458108e
fix: λ„μ»€μ»΄ν¬μ¦ˆ μˆ˜μ •6
yoonseopkim Nov 21, 2024
9f7ab38
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Nov 21, 2024
084d542
fix: 적용브랜치 μˆ˜μ •
yoonseopkim Nov 21, 2024
d5df2d4
fix: 적용브랜치 μˆ˜μ •2
yoonseopkim Nov 21, 2024
308fdb6
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Nov 21, 2024
e127fc0
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Nov 29, 2024
9c849c2
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 2, 2024
a018d68
feat: μ•Œλ¦Ό,μ±„νŒ… λͺ¨λ“ˆ μΆ”κ°€
yoonseopkim Dec 2, 2024
fe1bddf
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 2, 2024
c1ef1f3
fix: λΉŒλ” λ„μ»€νŒŒμΌ λ³€κ²½
yoonseopkim Dec 2, 2024
3d43c46
fix: λΉŒλ” λ„μ»€νŒŒμΌ μ‹€ν–‰ μˆœμ„œ λ³€κ²½
yoonseopkim Dec 2, 2024
e3079dd
fix: ν…ŒμŠ€νŠΈμš© 컀밋
yoonseopkim Dec 2, 2024
2cc3be5
fix: cicd ν…ŒμŠ€νŠΈ μ½”λ“œ μΆ”κ°€
yoonseopkim Dec 2, 2024
a337729
fix: cicd ν…ŒμŠ€νŠΈ μ½”λ“œ μΆ”κ°€ 2
yoonseopkim Dec 2, 2024
12ce529
fix: cicd ν…ŒμŠ€νŠΈ μ½”λ“œ μΆ”κ°€ 3
yoonseopkim Dec 2, 2024
0c1b521
fix: cicd ν…ŒμŠ€νŠΈ μ½”λ“œ μΆ”κ°€ 4
yoonseopkim Dec 2, 2024
19de1d6
fix: cicd ν…ŒμŠ€νŠΈ μ½”λ“œ μΆ”κ°€ 5
yoonseopkim Dec 2, 2024
67bb45b
fix: μΉ΄ν”„μΉ΄ νŒŒμ‹± μˆ˜μ •
yoonseopkim Dec 2, 2024
bfdb2f2
fix: μΉ΄ν”„μΉ΄ νŒŒμ‹± μˆ˜μ • 2
yoonseopkim Dec 2, 2024
08c5ea9
fix: μΉ΄ν”„μΉ΄ νŒŒμ‹± μˆ˜μ • 3
yoonseopkim Dec 2, 2024
f6591d7
fix: μ΅œμ‹ μ»€λ°‹ λ‘€λ°±
yoonseopkim Dec 2, 2024
a419958
fix: λ„μ»€μ»΄ν¬μ¦ˆ μ„œλΉ„μŠ€ μΆ”κ°€
yoonseopkim Dec 2, 2024
bcb0795
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 3, 2024
e75ac4a
fix: 적용 브랜치 λ³€κ²½
yoonseopkim Dec 3, 2024
e83a670
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 3, 2024
ac11f7d
fix: 루트 λ„μ»€νŒŒμΌ μˆ˜μ •
yoonseopkim Dec 4, 2024
800251c
fix: 루트 λ„μ»€νŒŒμΌ μˆ˜μ •2
yoonseopkim Dec 4, 2024
0d8d696
fix: 루트 λ„μ»€νŒŒμΌ μˆ˜μ • 3
yoonseopkim Dec 5, 2024
1a3ed09
fix: 루트 λ„μ»€νŒŒμΌ μˆ˜μ • 4
yoonseopkim Dec 5, 2024
fefbf9b
fix: 루트 λ„μ»€νŒŒμΌ μˆ˜μ • 5
yoonseopkim Dec 5, 2024
e00b99f
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 5, 2024
9cc6946
fix: cicd νŒŒμ΄ν”„λΌμΈ κ°œμ„ (λΉŒλ“œ 방식)
yoonseopkim Dec 5, 2024
9c546bf
fix: λ³€κ²½λœ λ‘œλ“œλ°ΈλŸ°μ„œ 반영 ν…ŒμŠ€νŠΈ
yoonseopkim Dec 5, 2024
f46d7a2
fix: λ³€κ²½λœ λ‘œλ“œλ°ΈλŸ°μ„œ 반영 ν…ŒμŠ€νŠΈ 2
yoonseopkim Dec 5, 2024
a450ed7
fix: λ³€κ²½λœ λ‘œλ“œλ°ΈλŸ°μ„œ 반영 ν…ŒμŠ€νŠΈ 3
yoonseopkim Dec 5, 2024
88a3201
fix: λ³€κ²½λœ λ‘œλ“œλ°ΈλŸ°μ„œ 반영 ν…ŒμŠ€νŠΈ 4
yoonseopkim Dec 8, 2024
30479a5
fix: λ³€κ²½λœ λ‘œλ“œλ°ΈλŸ°μ„œ 반영 ν…ŒμŠ€νŠΈ 4
yoonseopkim Dec 9, 2024
9578657
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 9, 2024
c2ef49a
feat : prod/dev 용 μ  ν‚¨μŠ€νŒŒμΌ
yoonseopkim Dec 16, 2024
37e9cf5
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 16, 2024
276ca46
feat : prod/dev 용 μ  ν‚¨μŠ€νŒŒμΌ
yoonseopkim Dec 17, 2024
920056e
feat : prod/dev 용 μ  ν‚¨μŠ€νŒŒμΌ
yoonseopkim Dec 17, 2024
92e35fa
fix: λ„μ»€νŒŒμΌ gradle 미반영 μˆ˜μ •
yoonseopkim Dec 17, 2024
1729203
fix: λ„μ»€νŒŒμΌ gradle 미반영 μˆ˜μ •2
yoonseopkim Dec 17, 2024
ff969a1
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 17, 2024
8962254
fix: μ  ν‚¨μŠ€ λΉŒλ” ν‘Έμ‹œ μ•ˆν•˜κ²Œ 함.
yoonseopkim Dec 19, 2024
848ecdd
fix: μ  ν‚¨μŠ€ 이미지 μ •λ¦¬ν•˜κ²Œ 함.
yoonseopkim Dec 19, 2024
1d90d34
fix: ecr μ΄λ―Έμ§€λ‘œ λ³€κ²½ ν…ŒμŠ€νŠΈ
yoonseopkim Dec 20, 2024
27287bc
fix: 각 λͺ¨λ“ˆ λ„μ»€νŒŒμΌ ecr 경둜둜 λ³€κ²½
yoonseopkim Dec 21, 2024
e7458e7
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 21, 2024
b17e21e
fix: λ„μ»€νŒŒμΌ λΉŒλ” 이미지 μ°Έμ‘° 방식 μˆ˜μ •
yoonseopkim Dec 21, 2024
f5897ef
fix: λ„μ»€νŒŒμΌ λΉŒλ” 이미지 μ°Έμ‘° 방식 μˆ˜μ • 2
yoonseopkim Dec 21, 2024
b429435
fix: λ„μ»€νŒŒμΌ λΉŒλ” 이미지 μ°Έμ‘° 방식 μˆ˜μ • 3
yoonseopkim Dec 23, 2024
427ae7e
fix: λ„μ»€νŒŒμΌ λΉŒλ” 이미지 μ°Έμ‘° 방식 μˆ˜μ • 4
yoonseopkim Dec 23, 2024
3c20d0c
fix: λ„μ»€νŒŒμΌ λΉŒλ” 이미지 μ°Έμ‘° 방식 μˆ˜μ • 5
yoonseopkim Dec 23, 2024
4a63dda
fix: λ„μ»€νŒŒμΌ 디버깅 μΆ”κ°€
yoonseopkim Dec 24, 2024
ef500a9
fix: λ„μ»€νŒŒμΌ λŸ°νƒ€μž„λ•Œ ν™˜κ²½λ³€μˆ˜ μ•ˆ 읽도둝 λ³€κ²½
yoonseopkim Dec 24, 2024
f2046e9
fix: λ„μ»€νŒŒμΌ λŸ°νƒ€μž„λ•Œ ν™˜κ²½λ³€μˆ˜ μ•ˆ 읽도둝 λ³€κ²½ 2
yoonseopkim Dec 24, 2024
9d860d4
Merge branch 'develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-CI/CD-κ΅¬ν˜„
ghk01214 Dec 24, 2024
7cd6ce0
fix: develop λΈŒλžœμΉ˜μ— μ μš©λ˜λ„λ‘ 함
yoonseopkim Dec 24, 2024
dcec627
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
yoonseopkim Dec 24, 2024
394b467
fix: dev 용 μ  ν‚¨μŠ€
yoonseopkim Dec 24, 2024
92661ce
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-ν‘Έμ‹œμ‹œ-…
ghk01214 Dec 24, 2024
5014afd
λΉŒλ” λΉŒλ“œ μ „ ν™˜κ²½λ³€μˆ˜ 확인
ghk01214 Dec 24, 2024
4bfd944
Merge remote-tracking branch 'origin/48-Develop브랜치-ν‘Έμ‹œμ‹œ-CI/CD-κ΅¬ν˜„' into…
yoonseopkim Dec 24, 2024
5f2c6a2
fix: μ • 상 ν™” ! !! !
yoonseopkim Dec 24, 2024
f25ea53
fix: dev νƒœκ·Έ λ„£μŒ
yoonseopkim Dec 24, 2024
3e8dfc1
fix: μ–΄μ΄μ—†λŠ” μ‹€μˆ˜
yoonseopkim Dec 24, 2024
5831d02
fix: 적용 브랜치 dev 둜 μˆ˜μ •
yoonseopkim Dec 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
443 changes: 287 additions & 156 deletions Jenkinsfile

Large diffs are not rendered by default.

176 changes: 176 additions & 0 deletions Jenkinsfile-dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
pipeline {
agent any

environment {
AWS_REGION = 'ap-northeast-2'
ECR_REGISTRY = credentials('ecr-registry')
DISCORD_CI_WEBHOOK = credentials('dev-discord-ci-webhook')
DISCORD_CD_WEBHOOK = credentials('dev-discord-cd-webhook')
DOCKER_TAG = 'dev'
}

stages {
stage('μ†ŒμŠ€μ½”λ“œ 체크아웃') {
steps {
script {
deleteDir()
git branch: 'develop',
url: 'https://github.com/KTB-Sixmen/gitfolio_back_spring.git'
}
}
}

stage('ν™˜κ²½ μ„€μ •') {
steps {
script {
def envFile = '/var/lib/jenkins/environments/.env.back.dev'
if (fileExists(envFile)) {
sh """
cp ${envFile} .env
echo 'ν™˜κ²½ 파일 볡사 μ™„λ£Œ: ${envFile}'
"""
} else {
error "ν™˜κ²½ νŒŒμΌμ„ 찾을 수 μ—†μŠ΅λ‹ˆλ‹€: ${envFile}"
}

withCredentials([[$class: 'AmazonWebServicesCredentialsBinding',
credentialsId: 'aws-credentials',
accessKeyVariable: 'AWS_ACCESS_KEY_ID',
secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) {
sh """
aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${ECR_REGISTRY}
echo 'ECR 둜그인 μ™„λ£Œ'
"""
}
}
}
}

stage('Builder 이미지 λΉŒλ“œ') {
steps {
script {
sh """
docker build \
-f dockerfile \
-t builder:${DOCKER_TAG} \
--platform linux/amd64 \
.
"""
}
}
}

stage('λͺ¨λ“ˆ λΉŒλ“œ 및 배포') {
matrix {
axes {
axis {
name 'MODULE'
values 'auth', 'member', 'payment', 'resume', 'notification'
}
}
stages {
stage('λͺ¨λ“ˆ λΉŒλ“œ 및 ν‘Έμ‹œ') {
steps {
script {
def moduleConfig = [
auth: [path: './gitfolio-auth', index: '1'],
member: [path: './gitfolio-member', index: '1'],
payment: [path: './gitfolio-payment', index: '2'],
resume: [path: './gitfolio-resume', index: '2'],
notification: [path: './gitfolio-notification', index: '3']
]

def config = moduleConfig[MODULE]
def imageTag = "${ECR_REGISTRY}/gitfolio/${MODULE}:${DOCKER_TAG}"

sh """
docker build \
-f ${config.path}/Dockerfile \
-t ${imageTag} \
--build-arg BUILDER_IMAGE=${ECR_REGISTRY}/gitfolio/builder:${DOCKER_TAG} \
--platform linux/amd64 \
.

docker push ${imageTag}
"""

withCredentials([[$class: 'AmazonWebServicesCredentialsBinding',
credentialsId: 'aws-credentials',
accessKeyVariable: 'AWS_ACCESS_KEY_ID',
secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) {

def instanceIds = sh(
script: """
aws ec2 describe-instances \
--region ${AWS_REGION} \
--filters 'Name=tag:Service,Values=back' \
'Name=tag:Index,Values=${config.index}' \
'Name=tag:Environment,Values=dev' \
'Name=tag:Type,Values=ec2' \
'Name=instance-state-name,Values=running' \
--query 'Reservations[].Instances[].InstanceId' \
--output text
""",
returnStdout: true
).trim()

if (instanceIds) {
sh """
aws ssm send-command \
--instance-ids "${instanceIds}" \
--document-name "AWS-RunShellScript" \
--comment "Deploying ${MODULE} module" \
--parameters commands='
cd /home/ec2-user
docker-compose down -v --rmi all
docker builder prune -f --filter until=24h
docker image prune -f
docker-compose pull
docker-compose up -d
' \
--timeout-seconds 600 \
--region ${AWS_REGION}
"""
} else {
error "${MODULE} λͺ¨λ“ˆμ„ μœ„ν•œ EC2 μΈμŠ€ν„΄μŠ€λ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€."
}
}
}
}
}
}
}
}
}

post {
always {
script {
sh """
docker builder prune -f --filter until=24h
docker image prune -f
rm -f .env
"""
}
}
success {
discordSend description: "dev λ°±μ—”λ“œ λΉŒλ“œ 및 배포 성곡",
footer: "Jenkins Pipeline Success",
link: env.BUILD_URL,
result: currentBuild.currentResult,
title: JOB_NAME,
webhookURL: DISCORD_CI_WEBHOOK
}
failure {
discordSend description: "dev λ°±μ—”λ“œ λΉŒλ“œ 및 배포 μ‹€νŒ¨",
footer: "Jenkins Pipeline Failed",
link: env.BUILD_URL,
result: currentBuild.currentResult,
title: JOB_NAME,
webhookURL: DISCORD_CI_WEBHOOK
}



}
}
145 changes: 145 additions & 0 deletions docker-compose-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
#services:
# builder:
# platform: linux/amd64
# build:
# context: ./
# dockerfile: dockerfile
# target: builder
# volumes:
# - gradle-cache:/root/.gradle
# - build-output:/gitfolio_back/build
# image: aida0/gitfolio_builder:test
# profiles:
# - build

# 1번 λͺ¨λ“ˆ
services:
auth:
platform: linux/amd64
image: 727646500036.dkr.ecr.ap-northeast-2.amazonaws.com/gitfolio/auth:dev
container_name: gitfolio_auth
ports:
- target: 8080
published: 80
protocol: tcp
- target: 8080
published: 443
protocol: tcp
networks:
- back
member:
platform: linux/amd64
image: 727646500036.dkr.ecr.ap-northeast-2.amazonaws.com/gitfolio/member:dev
container_name: gitfolio_member
ports:
- target: 8080
published: 81
protocol: tcp
- target: 8080
published: 444
protocol: tcp
networks:
- back
networks:
back:
driver: bridge
attachable: true

#2번 λͺ¨λ“ˆ
services:
resume:
platform: linux/amd64
image: 727646500036.dkr.ecr.ap-northeast-2.amazonaws.com/gitfolio/resume:dev
container_name: gitfolio_resume
ports:
- target: 8080
published: 80
protocol: tcp
- target: 8080
published: 443
protocol: tcp
networks:
- back
payment:
platform: linux/amd64
image: 727646500036.dkr.ecr.ap-northeast-2.amazonaws.com/gitfolio/payment:dev
container_name: gitfolio_payment
ports:
- target: 8080
published: 81
protocol: tcp
- target: 8080
published: 444
protocol: tcp
networks:
- back
networks:
back:
driver: overlay
attachable: true

#3번λͺ¨λ“ˆ
services:
notification:
platform: linux/amd64
image: 727646500036.dkr.ecr.ap-northeast-2.amazonaws.com/gitfolio/notification:dev
container_name: gitfolio_notification
ports:
- target: 8080
published: 80
protocol: tcp
- target: 8080
published: 443
protocol: tcp
networks:
- back

zookeeper:
platform: linux/amd64
image: zookeeper:3.6
container_name: gitfolio_zookeeper
ports:
- target: 2181
published: 2181
protocol: tcp
volumes:
- zookeeper_data:/var/lib/zookeeper/data
networks:
- back

kafka:
platform: linux/amd64
image: confluentinc/cp-kafka:7.4.0
container_name: gitfolio_kafka
ports:
- target: 9092
published: 9092
protocol: tcp
- target: 29092
published: 29092
protocol: tcp
# environment: μ„Ήμ…˜μ΄ μžˆλ‹€λ©΄ μ œκ±°ν•˜κ±°λ‚˜ μ£Όμ„μ²˜λ¦¬
environment:
KAFKA_BROKER_ID: 1
KAFKA_LISTENERS: LISTENER_DOCKER://0.0.0.0:29092,LISTENER_EXTERNAL://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER://localhost:29092,LISTENER_EXTERNAL://10.0.105.99:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER:PLAINTEXT,LISTENER_EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1

depends_on:
- zookeeper
volumes:
- kafka_data:/var/lib/kafka/data
networks:
- back

volumes:
zookeeper_data:
kafka_data:

networks:
back:
driver: overlay
attachable: true
Loading