From ea2a46a6f74797e46a9a75ea180b1b230e24ab1a Mon Sep 17 00:00:00 2001 From: DongHoon Lee Date: Fri, 27 Dec 2024 23:15:59 +0900 Subject: [PATCH] =?UTF-8?q?del:=20docker-compose=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.dev.yml | 30 ---- docker-compose.local.yml | 30 ---- docker-compose.prod.yml | 29 ---- docker-compose.yml | 319 --------------------------------------- 4 files changed, 408 deletions(-) delete mode 100644 docker-compose.dev.yml delete mode 100644 docker-compose.local.yml delete mode 100644 docker-compose.prod.yml delete mode 100644 docker-compose.yml diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml deleted file mode 100644 index 1746571d..00000000 --- a/docker-compose.dev.yml +++ /dev/null @@ -1,30 +0,0 @@ -version: "3.7" - -services: - swagger: - labels: - caddy: localhost crew.api.dev.sopt.org - - nestjs-green: - environment: - - NODE_ENV=dev - labels: - caddy: localhost crew.api.dev.sopt.org - - spring-green: - environment: - - SPRING_PROFILES_ACTIVE=dev - labels: - caddy: localhost crew.api.dev.sopt.org - - nestjs-blue: - environment: - - NODE_ENV=dev - labels: - caddy: localhost crew.api.dev.sopt.org - - spring-blue: - environment: - - SPRING_PROFILES_ACTIVE=dev - labels: - caddy: localhost crew.api.dev.sopt.org diff --git a/docker-compose.local.yml b/docker-compose.local.yml deleted file mode 100644 index 7c6da8d6..00000000 --- a/docker-compose.local.yml +++ /dev/null @@ -1,30 +0,0 @@ -version: "3.7" - -services: - swagger: - labels: - caddy: localhost - - spring-green: - environment: - - SPRING_PROFILES_ACTIVE=dev - labels: - caddy: localhost - - nestjs-green: - environment: - - NODE_ENV=dev - labels: - caddy: localhost - - spring-blue: - environment: - - SPRING_PROFILES_ACTIVE=dev - labels: - caddy: localhost - - nestjs-blue: - environment: - - NODE_ENV=dev - labels: - caddy: localhost \ No newline at end of file diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml deleted file mode 100644 index 29081fba..00000000 --- a/docker-compose.prod.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: "3.7" - -services: - swagger: - labels: - caddy: localhost crew.api.prod.sopt.org - spring-green: - environment: - - SPRING_PROFILES_ACTIVE=prod - labels: - caddy: localhost crew.api.prod.sopt.org - - nestjs-green: - environment: - - NODE_ENV=prod - labels: - caddy: localhost crew.api.prod.sopt.org - - spring-blue: - environment: - - SPRING_PROFILES_ACTIVE=prod - labels: - caddy: localhost crew.api.prod.sopt.org - - nestjs-blue: - environment: - - NODE_ENV=prod - labels: - caddy: localhost crew.api.prod.sopt.org \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 372ca83d..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,319 +0,0 @@ -version: "3.7" - -services: - caddy: - container_name: caddy - image: lucaslorentz/caddy-docker-proxy:ci-alpine - ports: - - 80:80 - - 443:443 - environment: - - CADDY_INGRESS_NETWORKS=caddy - networks: - - caddy - volumes: - - /var/run/docker.sock:/var/run/docker.sock - restart: unless-stopped - labels: - caddy.log: "" - caddy.log.output: stdout - caddy.log.format: json - caddy.log.include: http.log.access.localhost - logging: - driver: "json-file" - options: - max-size: "10m" - max-file: "10" - - swagger: - image: swaggerapi/swagger-ui - env_file: - - ./.env - container_name: swagger - environment: - - URLS= - [ - {url:'/api-docs/json', name:'spring'}, - {url:'/api-docs-json', name:'nestjs'}, - ] - - BASE_URL=/docs - - SPRING_NAME=${SPRING_NAME} - - NESTJS_NAME=${NESTJS_NAME} - depends_on: - - ${SPRING_NAME} - - ${NESTJS_NAME} - networks: - - caddy - labels: - caddy.route: /docs* - caddy.route.reverse_proxy: "{{ upstreams 8080 }}" - logging: - driver: "json-file" - options: - max-size: "10m" - max-file: "10" - - redis: - image: redis:alpine - container_name: redis - hostname: redis - ports: - - 6379:6379 - networks: - - caddy - - nestjs-green: - image: makerscrew/server:develop - container_name: nestjs-green - ports: - - 3001:3000 - restart: unless-stopped - env_file: - - ./.env - environment: - - TZ=Asia/Seoul - - DB_HOST=${DB_HOST} - - DB_PORT=${DB_PORT} - - DB_USERNAME=${DB_USERNAME} - - DB_PASSWORD=${DB_PASSWORD} - - DB_NAME=${DB_NAME} - - DB_SCHEMA=${DB_SCHEMA} - - AWS_S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME} - - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} - - AWS_REGION=${AWS_REGION} - - JWT_SECRET=${JWT_SECRET} - logging: - driver: "json-file" - options: - max-size: "10m" - max-file: "10" - networks: - - caddy - labels: - caddy.log: "localhost" - # for Swagger spec - caddy.route_0: /api-docs-json - caddy.route_0.reverse_proxy: "{{ upstreams 3000 }}" - # for health check - caddy.route_1: / - caddy.route_1.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_2: /auth - caddy.route_2.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_3: /comment/v1 - caddy.route_3.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_4: /comment/v1/* - caddy.route_4.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_5: /meeting/apply - caddy.route_5.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_6: /meeting - caddy.route_6.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_7: /meeting/v1/* - caddy.route_7.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_8: /meeting/* - caddy.route_8.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_9: /notice/v1 - caddy.route_9.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_10: /notice/v1/* - caddy.route_10.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_11: /post/v1 - caddy.route_11.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_12: /post/v1/* - caddy.route_12.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_13: /users - caddy.route_13.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_14: /users/* - caddy.route_14.reverse_proxy: "{{ upstreams 3000 }}" - - spring-green: - image: makerscrew/main:develop - environment: - TZ: Asia/Seoul - container_name: spring-green - ports: - - 4001:4000 - - 5556:5555 - restart: unless-stopped - depends_on: - - nestjs-green - - pinpoint-agent - - redis - logging: - driver: "json-file" - options: - max-size: "10m" - max-file: "100" - networks: - - caddy - volumes: - - data-volume:/pinpoint-agent - - labels: - caddy.log: "localhost" - # for Swagger spec - caddy.route_0: /api-docs/json - caddy.route_0.reverse_proxy: "{{ upstreams 4000 }}" - # for health check - caddy.route_1: /health/* - caddy.route_1.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_2: /user/v2 - caddy.route_2.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_3: /user/v2/* - caddy.route_3.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_4: /meeting/v2 - caddy.route_4.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_5: /meeting/v2/* - caddy.route_5.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_6: /post/v2 - caddy.route_6.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_7: /post/v2/* - caddy.route_7.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_8: /comment/v2 - caddy.route_8.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_9: /comment/v2/* - caddy.route_9.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_10: /notice/v2 - caddy.route_10.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_11: /advertisement/v2 - caddy.route_11.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_12: /advertisement/v2/* - caddy.route_12.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_13: /auth/v2 - caddy.route_13.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_14: /auth/v2/* - caddy.route_14.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_15: /8da2d7e6-72aa-4120-9e84-8f459a2584a1/* - caddy.route_15.reverse_proxy: "{{ upstreams 5555 }}" - caddy.route_16: /internal/* - caddy.route_16.reverse_proxy: "{{ upstreams 4000 }}" - - nestjs-blue: - image: makerscrew/server:develop - container_name: nestjs-blue - ports: - - 3002:3000 - restart: unless-stopped - env_file: - - ./.env - environment: - - TZ=Asia/Seoul - - DB_HOST=${DB_HOST} - - DB_PORT=${DB_PORT} - - DB_USERNAME=${DB_USERNAME} - - DB_PASSWORD=${DB_PASSWORD} - - DB_NAME=${DB_NAME} - - DB_SCHEMA=${DB_SCHEMA} - - AWS_S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME} - - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} - - AWS_REGION=${AWS_REGION} - - JWT_SECRET=${JWT_SECRET} - logging: - driver: "json-file" - options: - max-size: "10m" - max-file: "10" - networks: - - caddy - labels: - caddy.log: "localhost" - # for Swagger spec - caddy.route_0: /api-docs-json - caddy.route_0.reverse_proxy: "{{ upstreams 3000 }}" - # for health check - caddy.route_1: / - caddy.route_1.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_2: /auth - caddy.route_2.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_3: /comment/v1 - caddy.route_3.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_4: /comment/v1/* - caddy.route_4.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_5: /meeting/apply - caddy.route_5.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_6: /meeting - caddy.route_6.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_7: /meeting/v1/* - caddy.route_7.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_8: /meeting/* - caddy.route_8.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_9: /notice/v1 - caddy.route_9.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_10: /notice/v1/* - caddy.route_10.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_11: /post/v1 - caddy.route_11.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_12: /post/v1/* - caddy.route_12.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_13: /users - caddy.route_13.reverse_proxy: "{{ upstreams 3000 }}" - caddy.route_14: /users/* - caddy.route_14.reverse_proxy: "{{ upstreams 3000 }}" - - spring-blue: - image: makerscrew/main:develop - environment: - TZ: Asia/Seoul - container_name: spring-blue - ports: - - 4002:4000 - - 5557:5555 - restart: unless-stopped - depends_on: - - nestjs-blue - - pinpoint-agent - - redis - logging: - driver: "json-file" - options: - max-size: "10m" - max-file: "100" - networks: - - caddy - volumes: - - data-volume:/pinpoint-agent - labels: - caddy.log: "localhost" - # for Swagger spec - caddy.route_0: /api-docs/json - caddy.route_0.reverse_proxy: "{{ upstreams 4000 }}" - # for health check - caddy.route_1: /health/* - caddy.route_1.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_2: /user/v2 - caddy.route_2.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_3: /user/v2/* - caddy.route_3.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_4: /meeting/v2 - caddy.route_4.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_5: /meeting/v2/* - caddy.route_5.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_6: /post/v2 - caddy.route_6.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_7: /post/v2/* - caddy.route_7.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_8: /comment/v2 - caddy.route_8.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_9: /comment/v2/* - caddy.route_9.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_10: /notice/v2 - caddy.route_10.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_11: /advertisement/v2 - caddy.route_11.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_12: /advertisement/v2/* - caddy.route_12.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_13: /auth/v2 - caddy.route_13.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_14: /auth/v2/* - caddy.route_14.reverse_proxy: "{{ upstreams 4000 }}" - caddy.route_15: /8da2d7e6-72aa-4120-9e84-8f459a2584a1/* - caddy.route_15.reverse_proxy: "{{ upstreams 5555 }}" - caddy.route_16: /internal/* - caddy.route_16.reverse_proxy: "{{ upstreams 4000 }}" - -volumes: - data-volume: - -networks: - caddy: - external: true \ No newline at end of file