Skip to content

Commit

Permalink
[#94] env: traefik 붙이기
Browse files Browse the repository at this point in the history
  • Loading branch information
rdd9223 committed Dec 9, 2023
1 parent 66696bc commit 8c6be23
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
version: "3.7"

services:
reverse-proxy:
image: traefik:v2.10
command:
- "--api.insecure=true"
- "--providers.docker"
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- default

spring:
build:
context: ./main
dockerfile: Dockerfile
container_name: spring
ports:
- 80:8080
expose:
- 8080
environment:
- SPRING_PROFILES_ACTIVE=dev
restart: unless-stopped
depends_on:
- nestjs
networks:
- default
labels:
- "traefik.http.routers.nestjs.rule=Host(`localhost`)"

nestjs:
build:
Expand Down

0 comments on commit 8c6be23

Please sign in to comment.