From 2a2ae4cfd705ee23cee2c727ec003bc0e1e47d66 Mon Sep 17 00:00:00 2001 From: bluehorn07 Date: Sun, 17 Mar 2024 19:52:24 +0900 Subject: [PATCH] remove dev stack --- docker-stack.yaml | 23 +++-------------------- nginx/poapper-api-dev.nginx | 11 ----------- 2 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 nginx/poapper-api-dev.nginx diff --git a/docker-stack.yaml b/docker-stack.yaml index 86458f4..ee421bb 100644 --- a/docker-stack.yaml +++ b/docker-stack.yaml @@ -1,25 +1,8 @@ version: '3.3' services: - dev: - image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/poapper-api:latest - ports: - - 6001:4000 - secrets: - - source: poapper_api_dot_env - target: /usr/src/app/.env - logging: - driver: local - options: - max-size: 10m - deploy: - labels: - swarmpit.service.deployment.autoredeploy: 'true' - placement: - constraints: - - node.role != manager - - node.labels.application == poapper_web prod: - image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/poapper-api:vX.X.X + # image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/poapper-api:vX.X.X + image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/poapper-api:latest ports: - 4001:4000 secrets: @@ -35,7 +18,7 @@ services: placement: constraints: - node.role != manager - - node.labels.application == poapper_web + - node.labels.application == popo secrets: poapper_api_dot_env: diff --git a/nginx/poapper-api-dev.nginx b/nginx/poapper-api-dev.nginx deleted file mode 100644 index 8caf951..0000000 --- a/nginx/poapper-api-dev.nginx +++ /dev/null @@ -1,11 +0,0 @@ -server { - server_name api-dev.poapper.club; - client_max_body_size 10M; - - location / { - proxy_pass http://localhost:6001; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } -}