Skip to content

Commit

Permalink
[#39] Docker compose 파일 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
rdd9223 authored and yeseul106 committed Nov 28, 2023
1 parent 651bfd9 commit 4f734b6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4f734b6

Please sign in to comment.