Skip to content

Commit

Permalink
[#94] env: 로깅 주기 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
rdd9223 committed Dec 9, 2023
1 parent 12618f3 commit 2f63d22
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ services:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
restart: unless-stopped

swagger:
Expand All @@ -30,6 +35,11 @@ services:
- spring
networks:
- caddy
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
labels:
caddy.route: /docs*
caddy.route.reverse_proxy: "{{ upstreams 8080 }}"
Expand All @@ -42,6 +52,11 @@ services:
restart: unless-stopped
depends_on:
- nestjs
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
networks:
- caddy
labels:
Expand All @@ -64,6 +79,11 @@ services:
restart: unless-stopped
networks:
- caddy
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
labels:
# for Swagger spec
caddy.route_0: /api-docs-json
Expand Down

0 comments on commit 2f63d22

Please sign in to comment.