Skip to content

Commit

Permalink
[Update] add docker-compose-prod.yml for pull image from ecr
Browse files Browse the repository at this point in the history
  • Loading branch information
Han-Jeong committed Jun 18, 2024
1 parent cff30db commit 0b98b1c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Generate deployment package
run: |
mkdir -p deploy/.platform/nginx/conf.d
cp docker-compose.yml deploy/docker-compose.yml
cp docker-compose-prod.yml deploy/docker-compose-prod.yml
cp -r .ebextensions-dev deploy/.ebextensions
cp .platform/nginx/conf.d/proxy-dev.conf deploy/.platform/nginx/conf.d/proxy.conf
cd deploy && zip -r deploy.zip .
Expand Down
36 changes: 36 additions & 0 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
services:
kafka:
image: wurstmeister/kafka:latest
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
depends_on:
- zookeeper

zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "2181:2181"

application:
image: 905418335051.dkr.ecr.ap-northeast-2.amazonaws.com/waggle-dev:latest
ports:
- "8080:8080"
depends_on:
- kafka
env_file:
- .env

nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./.platform/nginx/conf.d/proxy.conf:/etc/nginx/conf.d/default.conf
depends_on:
- application

0 comments on commit 0b98b1c

Please sign in to comment.