From 84ee1adca810740f2fd279fc57a5a6bc28c5261b Mon Sep 17 00:00:00 2001 From: omidshj Date: Wed, 5 Feb 2025 13:01:40 +0330 Subject: [PATCH] dev --- pp inception.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pp inception.yml diff --git a/pp inception.yml b/pp inception.yml new file mode 100644 index 0000000..b126d75 --- /dev/null +++ b/pp inception.yml @@ -0,0 +1,48 @@ +--- +- name: update inception + hosts: all + tasks: + - name: Stop Inception4 container if it exists + docker_container: + name: inception + state: absent + - name: Deploy Inception4 Docker container + docker_container: + name: inception + image: inception:{{semaphore_vars.task_details.incoming_version}} + state: started + restart_policy: always + networks: + - name: web + - name: inception + exposed_ports: + - "3000" + env: + PORT: "{{ PORT }}" + ACTION_SERVICE: "true" + CONFIG_SERVICE: "false" + PRODUCER_SERVICE: "true" + QUERY_SERVICE: "true" + RABBIT_MQ_CONSUMER: "true" + AUTH_SERVICE: "true" + MONGODB_URI: "{{ MONGODB4_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: "traefik" + traefik.http.routers.inception.entrypoints: "web,websecure" + traefik.http.routers.inception.rule: "HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.i4.eron.co`)" + traefik.http.services.inception.loadbalancer.server.port: "3000" + traefik.http.routers.inception.tls: "true" + traefik.http.routers.inception.tls.certresolver: "dnsresolver" + traefik.http.routers.inception.service: "inception" + traefik.http.routers.inception.tls.domains[0].main: "i4.eron.co" + traefik.http.routers.inception.tls.domains[0].sans: "*.i4.eron.co"