From 84cd889510de83d144c393007a04850f14556a25 Mon Sep 17 00:00:00 2001 From: DDonghyeo Date: Thu, 23 May 2024 17:50:36 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9Ddocs=20:=20docker-compose=20?= =?UTF-8?q?=EA=B5=AC=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 74 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..56302e2f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,74 @@ +version: '3' + +services: + +# nginx: +# container_name: nginx +# image: nginx:latest +# ports: +# - "80:80" +# volumes: +# - /home/ec2-user/nginx.conf:/etc/nginx/nginx.conf +# depends_on: +# - "db" +# restart: always #항상 재실행 + + api-gateway: + container_name: api-gateway + image: ${DOCKERHUB_USERNAME}/waither-gateway + expose: + - "8000" + restart: always + volumes: + - /home/ec2-user/logs/api-gateway:/logs + + config: + container_name: config + image: ${DOCKERHUB_USERNAME}/waither-config + expose: + - "8888" + environment: + CONFIG_GIT_URI : ${CONFIG_GIT_URI} + CONFIG_PASSPHRASE : ${CONFIG_PASSPHRASE} + CONFIG_PRIVATE_KEY : ${CONFIG_PRIVATE_KEY} + restart: always + volumes: + - /home/ec2-user/logs/config:/logs + + eureka: + container_name: eureka + image: ${DOCKERHUB_USERNAME}/waither-eureka + expose: + - "8761" + restart: always + volumes: + - /home/ec2-user/logs/eureka:/logs + + user-service: + container_name: user-service + image: ${DOCKERHUB_USERNAME}/waither-user + expose: + - "8080" + restart: unless-stopped #수동으로 중지되지 않는 이상 항상 재실행 + volumes: + - /home/ec2-user/logs/user-service:/logs + + weather-service: + container_name: weather-service + image: ${DOCKERHUB_USERNAME}/waither-weather + expose: + - "8081" + restart: unless-stopped + volumes: + - /home/ec2-user/logs/weather-service:/logs + + noti-service: + container_name: noti-service + image: ${DOCKERHUB_USERNAME}/waither-noti + expose: + - "8082" + restart: unless-stopped + volumes: + - /home/ec2-user/logs/noti-service:/logs + +