Skip to content

Commit

Permalink
[Deploy] Set docker-compose.yml Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong committed May 16, 2024
1 parent 8808dbc commit d8ddd29
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.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 Dockerrun.aws.dev.json deploy/Dockerrun.aws.json
cp docker-compose.yml deploy/docker-compose.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
14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ services:
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
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

Expand All @@ -26,3 +27,14 @@ services:
image: mongo:latest
ports:
- "27017:27017"

application:
image: 471112861132.dkr.ecr.ap-northeast-2.amazonaws.com/waggle-dev:latest
ports:
- "8080:8080"
depends_on:
- kafka
- redis
- mongo
env_file:
- .env
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spring:
type: redis

redis:
host: localhost
host: redis
port: 6379

server:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spring:
kafka:
admin:
properties:
bootstrap.servers: localhost:9092
bootstrap.servers: kafka:9092
topic:
topics-to-create: waggle-chat
partitions: 6
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-mongo.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mongodb:
client: mongodb://admin:12345678@localhost:27017/waggle?authSource=admin
client: mongodb://admin:12345678@mongo:27017/waggle?authSource=admin
name: waggle

0 comments on commit d8ddd29

Please sign in to comment.