playbooks/pp inception.yml

56 lines
2.3 KiB
YAML
Raw Normal View History

2025-02-05 13:01:40 +03:30
---
- 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
2025-02-05 16:38:31 +03:30
- name: mongodb
2025-02-05 13:01:40 +03:30
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"
2025-02-05 13:53:59 +03:30
MONGODB_URI: "{{ MONGODB_URI }}"
2025-02-05 13:01:40 +03:30
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"
2025-02-05 13:12:13 +03:30
traefik.docker.network: "web"
2025-02-24 04:48:52 +03:30
traefik.http.routers.pinception.entrypoints: "web,websecure"
2025-02-24 17:37:01 +03:30
traefik.http.routers.pinception.rule: "Host(`api.zzmvm350.ir`)"
2025-02-24 04:48:52 +03:30
traefik.http.services.pinception.loadbalancer.server.port: "3000"
traefik.http.routers.pinception.tls: "true"
traefik.http.routers.pinception.tls.certresolver: "httpresolver"
traefik.http.routers.pinception.service: "pinception"
2025-02-05 13:01:40 +03:30
traefik.http.routers.inception.entrypoints: "web,websecure"
2025-02-05 13:12:13 +03:30
traefik.http.routers.inception.rule: "Host(`i4.eron.co`) || HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.i4.eron.co`)"
2025-02-05 13:01:40 +03:30
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"