Commit e7670f43 authored by nimrod's avatar nimrod
Browse files

Web proxy: New Compose setup.

This is a copy of the web-proxy-docker repo but the base image is now in
the [dockerfiles](https://git.shore.co.il/shore/dockerfiles) repo.
parent 3d028688
Loading
Loading
Loading
Loading
Loading
+34 −4
Original line number Diff line number Diff line
---
include:
  - project: shore/ci-stuff
    file: templates/docker.yml
  - project: shore/ci-stuff
    file: templates/pre-commit.yml
  - project: shore/ci-stuff
@@ -13,17 +15,45 @@ default:
AWS Terraform plan:
  extends: .tf_plan
  stage: test
  #rules: &aws_tf_rules
  #  - changes:
  #      - ${TF_ROOT}/
  variables: &aws_tf_vars
    TF_ROOT: Terraform/AWS
  rules: &tf_rules
    - changes:
        - $TF_ROOT/*
        - $TF_ROOT/**/*

AWS Terraform apply:
  extends: .tf_apply
  stage: deploy
  #rules: *aws_tf_rules
  rules: *tf_rules
  needs:
    - job: AWS Terraform plan
      artifacts: true
  variables: *aws_tf_vars

web-proxy kodi build:
  extends: .compose-build
  tags: ["kodi.shore.co.il"]
  variables:
    WORKDIR: Compose/web-proxy/kodi
  # rules: &compose-rules
  #   - if: $CI_PIPELINE_SOURCE == "schedule"
  #   - if: $CI_PIPELINE_SOURCE == "push"
  #     changes:
  #       - $WORKDIR/*
  #       - $WORKDIR/**/*

web-proxy kodi pull:
  extends: .compose-pull
  tags: ["kodi.shore.co.il"]
  variables:
    WORKDIR: Compose/web-proxy/kodi
  # rules: *compose-rules

web-proxy kodi run:
  extends: .compose-run
  tags: ["kodi.shore.co.il"]
  variables:
    WORKDIR: Compose/web-proxy/kodi
  when: manual
  # rules: *compose-rules
+4 −0
Original line number Diff line number Diff line
# Web proxy

Nginx proxy and SSL termination for web sites and services on different hosts.
Each directory is in a different host.
+4 −0
Original line number Diff line number Diff line
*
!conf.d/
!www/
!snippets/
+1 −0
Original line number Diff line number Diff line
COMPOSE_PROJECT_NAME=web-proxy
+4 −0
Original line number Diff line number Diff line
# hadolint ignore=DL3006
FROM registry.shore.co.il/nginx
COPY --chown=root:root conf.d/ /etc/nginx/conf.d/
RUN nginx -t
Loading