diff --git a/.deploy/deploy-dev.yaml b/.deploy/deploy-dev.yaml index 3841a40..e4a6d1d 100644 --- a/.deploy/deploy-dev.yaml +++ b/.deploy/deploy-dev.yaml @@ -4,22 +4,10 @@ version: "3.4" services: platform-nginx: - image: mathwave/sprint-repo:platform-nginx - networks: - - net - - common-infra-nginx - deploy: - mode: replicated - restart_policy: - condition: any - update_config: - parallelism: 1 - order: start-first - - app: image: mathwave/sprint-repo:platform networks: - net + - common-infra-nginx environment: DB_HOST: "pg.develop.sprinthub.ru" DB_PASSWORD: $DB_PASSWORD_DEV @@ -89,7 +77,5 @@ services: order: start-first networks: - net: - driver: overlay common-infra-nginx: external: true \ No newline at end of file diff --git a/.deploy/deploy-prod.yaml b/.deploy/deploy-prod.yaml index b5ef631..511be96 100644 --- a/.deploy/deploy-prod.yaml +++ b/.deploy/deploy-prod.yaml @@ -4,26 +4,10 @@ version: "3.4" services: platform-nginx: - image: mathwave/sprint-repo:platform-nginx - networks: - - net - - common-infra-nginx - deploy: - mode: replicated - restart_policy: - condition: any - placement: - constraints: - # - node.role == worker - - node.labels.zone == ru - update_config: - parallelism: 1 - order: start-first - - app: image: mathwave/sprint-repo:platform networks: - net + - common-infra-nginx environment: DB_HOST: "pg.sprinthub.ru" DB_PASSWORD: $DB_PASSWORD_PROD @@ -103,7 +87,5 @@ services: order: start-first networks: - net: - driver: overlay common-infra-nginx: external: true diff --git a/nginx/Dockerfile b/nginx/Dockerfile deleted file mode 100644 index 0d947da..0000000 --- a/nginx/Dockerfile +++ /dev/null @@ -1,2 +0,0 @@ -FROM nginx -COPY nginx.conf /etc/nginx/nginx.conf \ No newline at end of file diff --git a/nginx/nginx.conf b/nginx/nginx.conf deleted file mode 100644 index 04ff17e..0000000 --- a/nginx/nginx.conf +++ /dev/null @@ -1,11 +0,0 @@ -events {} - -http { - client_max_body_size 150m; - server { - listen 1238; - location / { - proxy_pass http://app:8000/; - } - } -}