master
omidshj 2024-05-17 14:39:04 +03:30
parent 36b8bb4849
commit 7ecc25ea3f
1 changed files with 44 additions and 47 deletions

View File

@ -7,50 +7,47 @@
name: inception name: inception
state: absent state: absent
- name: Deploy Inception Docker container - name: Deploy Inception Docker container
hosts: all docker_container:
tasks: name: inception
- name: Run Inception container image: inception:{{semaphore_vars.task_details.incoming_version}}
docker_container: state: started
name: inception restart_policy: always
image: inception:{{semaphore_vars.task_details.incoming_version}} networks:
state: started - name: traefik
restart_policy: always - name: inception
networks: - name: redis
- name: traefik - name: rabbitmq
- name: inception - name: minio
- name: redis - name: mongo
- name: rabbitmq exposed_ports:
- name: minio - "3000"
- name: mongo env:
exposed_ports: sdxl_endpoint: "{{ sdxl_endpoint }}"
- "3000" PORT: "{{ PORT }}"
env: ACTION_SERVICE: "true"
sdxl_endpoint: "{{ sdxl_endpoint }}" CONFIG_SERVICE: "false"
PORT: "{{ PORT }}" PRODUCER_SERVICE: "true"
ACTION_SERVICE: "true" QUERY_SERVICE: "true"
CONFIG_SERVICE: "false" RABBIT_MQ_CONSUMER: "true"
PRODUCER_SERVICE: "true" AUTH_SERVICE: "true"
QUERY_SERVICE: "true" MONGODB_URI: "{{ MONGODB_URI }}"
RABBIT_MQ_CONSUMER: "true" ELASTICSEARCH_URI: "{{ ELASTICSEARCH_URI }}"
AUTH_SERVICE: "true" RABBIT_MQ_URI: "{{ RABBIT_MQ_URI }}"
MONGODB_URI: "{{ MONGODB_URI }}" REDIS_URI: "{{ REDIS_URI }}"
ELASTICSEARCH_URI: "{{ ELASTICSEARCH_URI }}" MINIO_URL: "{{ MINIO_URL }}"
RABBIT_MQ_URI: "{{ RABBIT_MQ_URI }}" MINIO_ENDPOINT: "{{ MINIO_ENDPOINT }}"
REDIS_URI: "{{ REDIS_URI }}" MINIO_PORT: "{{ MINIO_PORT }}"
MINIO_URL: "{{ MINIO_URL }}" MINIO_USE_SSL: "{{ MINIO_USE_SSL }}"
MINIO_ENDPOINT: "{{ MINIO_ENDPOINT }}" MINIO_ACCESS_KEY: "{{ MINIO_ACCESS_KEY }}"
MINIO_PORT: "{{ MINIO_PORT }}" MINIO_SECRET_KEY: "{{ MINIO_SECRET_KEY }}"
MINIO_USE_SSL: "{{ MINIO_USE_SSL }}" labels:
MINIO_ACCESS_KEY: "{{ MINIO_ACCESS_KEY }}" traefik.enable: "true"
MINIO_SECRET_KEY: "{{ MINIO_SECRET_KEY }}" traefik.docker.network: "traefik"
labels: traefik.http.routers.inception.entrypoints: "web,websecure"
traefik.enable: "true" traefik.http.routers.inception.rule: "Host(`inception.eron.co`) || HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.inception.eron.co`)"
traefik.docker.network: "traefik" traefik.http.services.inception.loadbalancer.server.port: "3000"
traefik.http.routers.inception.entrypoints: "web,websecure" traefik.http.routers.inception.tls: "true"
traefik.http.routers.inception.rule: "Host(`inception.eron.co`) || HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.inception.eron.co`)" traefik.http.routers.inception.tls.certresolver: "letsencrypt"
traefik.http.services.inception.loadbalancer.server.port: "3000" traefik.http.routers.inception.service: "inception"
traefik.http.routers.inception.tls: "true" traefik.http.routers.inception.tls.domains[0].main: "inception.eron.co"
traefik.http.routers.inception.tls.certresolver: "letsencrypt" traefik.http.routers.inception.tls.domains[0].sans: "*.inception.eron.co"
traefik.http.routers.inception.service: "inception"
traefik.http.routers.inception.tls.domains[0].main: "inception.eron.co"
traefik.http.routers.inception.tls.domains[0].sans: "*.inception.eron.co"