Skip to content

Commit

Permalink
Deployment 3
Browse files Browse the repository at this point in the history
Deployment 3
  • Loading branch information
DDonghyeo authored May 23, 2024
2 parents 6c5e657 + 741ca91 commit de0a88f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ jobs:
script: |
export CONFIG_GIT_URI=${{ secrets.CONFIG_GIT_URI }}
export CONFIG_PASSPHRASE=${{ secrets.CONFIG_PASSPHRASE }}
export CONFIG_PRIVATE_KEY=${{ secrets.CONFIG_PRIVATE_KEY_DIR }}
export DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}
bash /home/docker_init.sh
Expand Down
2 changes: 1 addition & 1 deletion config-service/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spring:
uri: ${CONFIG_GIT_URI}
ignore-local-ssh-settings: true
passphrase: ${CONFIG_PASSPHRASE}
private-key: ${CONFIG_PRIVATE_KEY_DIR}
private-key: ${CONFIG_PRIVATE_KEY}
21 changes: 14 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ services:
image: ${DOCKERHUB_USERNAME}/waither-gateway
expose:
- "8000"
restart: always
# restart: always
restart: no
volumes:
- /home/ec2-user/logs/api-gateway:/logs

Expand All @@ -30,8 +31,9 @@ services:
environment:
CONFIG_GIT_URI : ${CONFIG_GIT_URI}
CONFIG_PASSPHRASE : ${CONFIG_PASSPHRASE}
CONFIG_PRIVATE_KEY_DIR : ${CONFIG_PRIVATE_KEY_DIR}
restart: always
# CONFIG_PRIVATE_KEY_DIR : ${CONFIG_PRIVATE_KEY_DIR}
# restart: always
restart: no
volumes:
- /home/ec2-user/logs/config:/logs

Expand All @@ -40,7 +42,8 @@ services:
image: ${DOCKERHUB_USERNAME}/waither-eureka
expose:
- "8761"
restart: always
# restart: always
restart: no
volumes:
- /home/ec2-user/logs/eureka:/logs

Expand All @@ -49,7 +52,8 @@ services:
image: ${DOCKERHUB_USERNAME}/waither-user
expose:
- "8080"
restart: unless-stopped #수동으로 중지되지 않는 이상 항상 재실행
# restart: unless-stopped #수동으로 중지되지 않는 이상 항상 재실행
restart: no
volumes:
- /home/ec2-user/logs/user-service:/logs

Expand All @@ -58,7 +62,8 @@ services:
image: ${DOCKERHUB_USERNAME}/waither-weather
expose:
- "8081"
restart: unless-stopped
# restart: unless-stopped
restart: no
volumes:
- /home/ec2-user/logs/weather-service:/logs

Expand All @@ -67,7 +72,8 @@ services:
image: ${DOCKERHUB_USERNAME}/waither-noti
expose:
- "8082"
restart: unless-stopped
# restart: unless-stopped
restart: no
volumes:
- /home/ec2-user/logs/noti-service:/logs

Expand All @@ -76,6 +82,7 @@ services:
container_name: zookeeper
ports:
- "2181:2181"

kafka:
image: wurstmeister/kafka:latest
container_name: kafka
Expand Down

0 comments on commit de0a88f

Please sign in to comment.