From 4f734b6e7db34adf02872f0ba006d53308fa520a Mon Sep 17 00:00:00 2001 From: YeongWoooo Date: Sat, 11 Nov 2023 16:28:39 +0900 Subject: [PATCH] =?UTF-8?q?[#39]=20Docker=20compose=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..2a654ecf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +version: "3.7" + +services: + spring: + build: + context: ./main + dockerfile: Dockerfile + container_name: spring + ports: + - 80:8080 + expose: + - 8080 + restart: unless-stopped + depends_on: + - nestjs + networks: + - default + + nestjs: + build: + context: ./server + dockerfile: Dockerfile + container_name: nestjs + expose: + - 3000 + restart: unless-stopped + networks: + - default + +networks: + default: + name: my-network