Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
heesane committed Nov 28, 2024
1 parent d78eb09 commit efa758f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 40 deletions.
16 changes: 8 additions & 8 deletions docker/back/docker-compose.back.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Backend Docker Compose
version: "3.7"
networks:
home_network:
external: true

volumes:
spring_log:
external: true

services:
api:
image: ghkd110/server:test
Expand Down Expand Up @@ -49,9 +55,3 @@ services:
networks:
- home_network

networks:
home_network:
external: true

volumes:
spring_log:
1 change: 0 additions & 1 deletion docker/database/docker-compose.database.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"
services:
mysql:
image: mysql:latest
Expand Down
55 changes: 25 additions & 30 deletions docker/logging/docker-compose.logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ services:
- home_network
- elk
restart: unless-stopped
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.elasticsearch.rule=Host(`es.heesang.pro`)"
# - "traefik.http.routers.elasticsearch.entrypoints=web"
# - "traefik.http.services.elasticsearch.loadbalancer.server.port=9200"

logstash:
image: docker.elastic.co/logstash/logstash:8.7.1
Expand Down Expand Up @@ -67,7 +62,7 @@ services:
- -e
- --strict.perms=false
volumes:
- back_spring-log:/var/log/host_logs:ro
- spring_log:/var/log/host_logs:ro
- ./filebeat/config/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro,Z
- type: bind
source: /var/lib/docker/containers
Expand All @@ -85,30 +80,30 @@ services:
depends_on:
- elasticsearch

loki:
container_name: loki
image: grafana/loki:latest
command: -config.file=/etc/loki/local-config.yaml
networks:
- home_network
# loki:
# container_name: loki
# image: grafana/loki:latest
# command: -config.file=/etc/loki/local-config.yaml
# networks:
# - home_network

promtail:
container_name: promtail
image: grafana/promtail:latest
volumes:
- ./promtail:/etc/promtail/
- /var/log:/var/log:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock
- devops_traefik_logs:/traefik/logs/
- devops_npm_logs:/nginx/logs/
command:
- -config.file=/etc/promtail/config.yaml
- -config.expand-env=true
depends_on:
- loki
networks:
- home_network
# promtail:
# container_name: promtail
# image: grafana/promtail:latest
# volumes:
# - ./promtail:/etc/promtail/
# - /var/log:/var/log:ro
# - /var/lib/docker/containers:/var/lib/docker/containers:ro
# - /var/run/docker.sock:/var/run/docker.sock
# - devops_traefik_logs:/traefik/logs/
# - devops_npm_logs:/nginx/logs/
# command:
# - -config.file=/etc/promtail/config.yaml
# - -config.expand-env=true
# depends_on:
# - loki
# networks:
# - home_network

networks:
home_network:
Expand All @@ -122,6 +117,6 @@ volumes:
external: true
devops_npm_logs:
external: true
back_spring-log:
spring_log:
external: true

1 change: 0 additions & 1 deletion docker/message_queue/docker-compose.mq.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"
services:
rabbitmq:
image: "rabbitmq:management"
Expand Down

0 comments on commit efa758f

Please sign in to comment.