From 28e60ac80a9e41a84aefdf6c9856a602060e5ca5 Mon Sep 17 00:00:00 2001 From: omidshj Date: Wed, 26 Nov 2025 13:13:42 +0330 Subject: [PATCH] pp inception stage --- pp inception stage.yml | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pp inception stage.yml diff --git a/pp inception stage.yml b/pp inception stage.yml new file mode 100644 index 0000000..9e5e2c5 --- /dev/null +++ b/pp inception stage.yml @@ -0,0 +1,50 @@ +--- +- name: update inception + hosts: all + tasks: + - name: Stop Inception4 container if it exists + docker_container: + name: inception_stage + state: absent + - name: Deploy Inception4 Docker container + docker_container: + name: inception_stage + image: inception:{{semaphore_vars.task_details.incoming_version}} + state: started + restart_policy: always + networks: + - name: web + - name: inception + - name: mongodb + exposed_ports: + - "3000" + env: + PORT: "{{ PORT }}" + QUEUE_NAME: "stage_inception" + ACTION_SERVICE: "true" + CONFIG_SERVICE: "false" + PRODUCER_SERVICE: "true" + QUERY_SERVICE: "true" + RABBIT_MQ_CONSUMER: "true" + AUTH_SERVICE: "true" + MONGODB_URI: "{{ MONGODB_URI }}" + ELASTICSEARCH_URI: "{{ ELASTICSEARCH_URI }}" + RABBIT_MQ_URI: "{{ RABBIT_MQ4_URI }}" + MINIO_URL: "{{ MINIO_URL }}" + MINIO_ENDPOINT: "{{ MINIOS3_ENDPOINT }}" + MINIO_PORT: "{{ MINIO_PORT }}" + MINIO_USE_SSL: "{{ MINIO_USE_SSL }}" + MINIO_ACCESS_KEY: "{{ MINIO_ACCESS_KEY }}" + MINIO_SECRET_KEY: "{{ MINIO_SECRET_KEY }}" + INCEPTION_APP: inception + labels: + traefik.enable: "true" + traefik.docker.network: "web" + traefik.http.routers.stage_inception.entrypoints: "web,websecure" + traefik.http.routers.stage_inception.rule: "Host(`i4s.eron.co`) || HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.i4s.eron.co`)" + traefik.http.services.stage_inception.loadbalancer.server.port: "3000" + traefik.http.routers.stage_inception.tls: "true" + traefik.http.routers.stage_inception.tls.certresolver: "dnsresolver" + traefik.http.routers.stage_inception.service: "stage_inception" + traefik.http.routers.stage_inception.tls.domains[0].main: "i4s.eron.co" + traefik.http.routers.stage_inception.tls.domains[0].sans: "*.i4s.eron.co"