Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions Docker/ai/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Base image
FROM python:3.12-alpine
FROM --platform=linux/amd64 python:3.12-alpine

# 작업 디렉토리 설정
WORKDIR /app
Expand Down
21 changes: 21 additions & 0 deletions Docker/ai/docker-compose-ai-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
services:
ai:
platform: linux/amd64
image: 727646500036.dkr.ecr.ap-northeast-2.amazonaws.com/gitfolio/ai:dev
container_name: gitfolio_ai
ports:
- target: 8000
published: 80
protocol: tcp
- target: 8000
published: 443
protocol: tcp
env_file:
- .env
networks:
- ai

networks:
ai:
driver: overlay
attachable: true
17 changes: 10 additions & 7 deletions Docker/ai/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
services:
ai:
platform: linux/amd64
build:
context: ./
dockerfile: Dockerfile
image: aida0/gitfolio_ai:test
image: 727646500036.dkr.ecr.ap-northeast-2.amazonaws.com/gitfolio/ai:dev
container_name: gitfolio_ai
ports:
- target: 8000
Expand All @@ -13,6 +10,12 @@ services:
- target: 8000
published: 443
protocol: tcp
- target: 8000
published: 5000
protocol: tcp
env_file:
- .env
networks:
- ai

networks:
ai:
driver: overlay
attachable: true
136 changes: 136 additions & 0 deletions Docker/back/docker-compose-back-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# 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:
# 브로커 식별자 설정
KAFKA_BROKER_ID: 1
# 주키퍼 연결 설정 - 컨테이너 이름으로 접근
KAFKA_ZOOKEEPER_CONNECT: gitfolio_zookeeper:2181
# 리스너 설정 - 내부/외부 통신을 위한 포트 설정
KAFKA_LISTENERS: INTERNAL://0.0.0.0:29092,EXTERNAL://0.0.0.0:9092
# 브로커가 알려줄 리스너 주소 - 실제 접근 가능한 호스트와 포트
KAFKA_ADVERTISED_LISTENERS: INTERNAL://gitfolio_kafka:29092,EXTERNAL://10.0.105.99:9092
# 리스너별 보안 프로토콜 매핑
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
# 브로커 간 통신에 사용할 리스너 이름
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
# 토픽 복제 팩터 설정 (단일 브로커이므로 1로 설정)
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
19 changes: 19 additions & 0 deletions Docker/back/docker-compose.back.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ services:
protocol: tcp
networks:
- back

zookeeper:
platform: linux/amd64
image: zookeeper:3.6
Expand All @@ -91,6 +92,7 @@ services:
- zookeeper_data:/var/lib/zookeeper/data
networks:
- back

kafka:
platform: linux/amd64
image: confluentinc/cp-kafka:7.4.0
Expand All @@ -102,15 +104,32 @@ services:
- target: 29092
published: 29092
protocol: tcp
environment:
# 브로커 식별자 설정
KAFKA_BROKER_ID: 1
# 주키퍼 연결 설정 - 컨테이너 이름으로 접근
KAFKA_ZOOKEEPER_CONNECT: gitfolio_zookeeper:2181
# 리스너 설정 - 내부/외부 통신을 위한 포트 설정
KAFKA_LISTENERS: INTERNAL://0.0.0.0:29092,EXTERNAL://0.0.0.0:9092
# 브로커가 알려줄 리스너 주소 - 실제 접근 가능한 호스트와 포트
KAFKA_ADVERTISED_LISTENERS: INTERNAL://gitfolio_kafka:29092,EXTERNAL://10.0.105.99:9092
# 리스너별 보안 프로토콜 매핑
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
# 브로커 간 통신에 사용할 리스너 이름
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
# 토픽 복제 팩터 설정 (단일 브로커이므로 1로 설정)
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
Expand Down
14 changes: 14 additions & 0 deletions Docker/front/docker-compose-front-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
frontend:
platform: linux/amd64
build:
context: ./
dockerfile: Dockerfile
image: 727646500036.dkr.ecr.ap-northeast-2.amazonaws.com/gitfolio/front:dev
ports:
- target: 3000
published: 80
protocol: tcp
- target: 3000
published: 443
protocol: tcp
Loading