Update deploy inception.yml
parent
6f3bcd320c
commit
64757e88d2
|
@ -51,3 +51,51 @@
|
||||||
traefik.http.routers.inception.service: "inception"
|
traefik.http.routers.inception.service: "inception"
|
||||||
traefik.http.routers.inception.tls.domains[0].main: "inception.eron.co"
|
traefik.http.routers.inception.tls.domains[0].main: "inception.eron.co"
|
||||||
traefik.http.routers.inception.tls.domains[0].sans: "*.inception.eron.co"
|
traefik.http.routers.inception.tls.domains[0].sans: "*.inception.eron.co"
|
||||||
|
- name: Stop Inception4 container if it exists
|
||||||
|
docker_container:
|
||||||
|
name: inception4
|
||||||
|
state: absent
|
||||||
|
- name: Deploy Inception4 Docker container
|
||||||
|
docker_container:
|
||||||
|
name: inception4
|
||||||
|
image: inception:{{semaphore_vars.task_details.incoming_version}}
|
||||||
|
state: started
|
||||||
|
restart_policy: always
|
||||||
|
networks:
|
||||||
|
- name: traefik
|
||||||
|
- name: inception
|
||||||
|
- name: redis
|
||||||
|
- name: rabbitmq
|
||||||
|
- name: minio
|
||||||
|
- name: mongo
|
||||||
|
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_MQ_URI }}"
|
||||||
|
REDIS_URI: "{{ REDIS_URI }}"
|
||||||
|
MINIO_URL: "{{ MINIO_URL }}"
|
||||||
|
MINIO_ENDPOINT: "{{ MINIOS3_ENDPOINT }}"
|
||||||
|
MINIO_PORT: "{{ MINIOS_PORT }}"
|
||||||
|
MINIO_USE_SSL: "{{ MINIO_USE_SSL }}"
|
||||||
|
MINIO_ACCESS_KEY: "{{ MINIO_ACCESS_KEY }}"
|
||||||
|
MINIO_SECRET_KEY: "{{ MINIO_SECRET_KEY }}"
|
||||||
|
labels:
|
||||||
|
traefik.enable: "true"
|
||||||
|
traefik.docker.network: "traefik"
|
||||||
|
traefik.http.routers.inception4.entrypoints: "web,websecure"
|
||||||
|
traefik.http.routers.inception4.rule: "Host(`inception.omidshj.ir`) || HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.inception.omidshj.ir`)"
|
||||||
|
traefik.http.services.inception4.loadbalancer.server.port: "3000"
|
||||||
|
traefik.http.routers.inception4.tls: "true"
|
||||||
|
traefik.http.routers.inception4.tls.certresolver: "letsencrypt"
|
||||||
|
traefik.http.routers.inception4.service: "inception4"
|
||||||
|
traefik.http.routers.inception4.tls.domains[0].main: "inception.omidshj.ir"
|
||||||
|
traefik.http.routers.inception4.tls.domains[0].sans: "*.inception.omidshj.ir"
|
||||||
|
|
Loading…
Reference in New Issue