From 32855bb1082802cc4a40dc66fb86d0b6742f3a92 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 13 May 2024 14:49:41 -0400 Subject: [PATCH] SOFD --- stack.production.yml | 60 +++++++++++++++++++++++++++++++++++++----- stack.staging.yml | 62 +++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 111 insertions(+), 11 deletions(-) diff --git a/stack.production.yml b/stack.production.yml index b4b4ca0..068f332 100644 --- a/stack.production.yml +++ b/stack.production.yml @@ -3,7 +3,6 @@ networks: traefik: external: true sofd-net: - services: opensearch: image: opensearchproject/opensearch:2.11.1 @@ -15,10 +14,17 @@ services: bootstrap.memory_lock: "false" ES_JAVA_OPTS: "-Xms1g -Xmx1g" OPENSEARCH_INITIAL_ADMIN_PASSWORD: "PzGRamsPfmYkv2yBvcuB7xfzdpZhwMCcx" - # volumes: - # - opensearch-data1:/usr/share/elasticsearch/data + volumes: + - /root/tank/persist/nixc.us/sofd/production/opensearch:/usr/share/elasticsearch/data networks: - sofd-net + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == macmini8 + labels: + traefik.enable: "false" fluentd: image: git.nixc.us/nixius/sofd:production-fluentd @@ -26,13 +32,33 @@ services: FLUENTD_CONF: fluent.conf # volumes: # - ./fluentd/conf:/fluentd/etc - ports: - - "9880:9880" + # ports: + # - "9880:9880" networks: - sofd-net depends_on: - opensearch - + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == macmini8 + # labels: + # traefik.enable: "false" + labels: + homepage.group: apps + homepage.name: sofd-fluentd + homepage.href: https://sofd-fluentd.nixc.us/ + homepage.description: sofd-fluentd + traefik.enable: "true" + traefik.http.routers.production_sofd_fluentd.tls: "true" + traefik.http.services.production_sofd_fluentd.loadbalancer.server.port: "9880" + traefik.http.routers.production_sofd_fluentd.rule: Host(`sofd-fluentd.nixc.us`) + traefik.http.routers.production_sofd_fluentd.entrypoints: websecure + traefik.http.routers.production_sofd_fluentd.tls.certresolver: letsencryptresolver + traefik.http.routers.production_sofd_fluentd.service: production_sofd_fluentd + traefik.docker.network: traefik + opensearch-dashboards: image: opensearchproject/opensearch-dashboards:2.11.1 environment: @@ -42,4 +68,24 @@ services: networks: - sofd-net depends_on: - - opensearch \ No newline at end of file + - opensearch + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == macmini8 + # labels: + # traefik.enable: "false" + labels: + homepage.group: apps + homepage.name: sofd-opensearch + homepage.href: https://sofd-opensearch.nixc.us/ + homepage.description: sofd-opensearch + traefik.enable: "true" + traefik.http.routers.production_sofd_opensearch-dashboards.tls: "true" + traefik.http.services.production_sofd_opensearch-dashboards.loadbalancer.server.port: "5601" + traefik.http.routers.production_sofd_opensearch-dashboards.rule: Host(`sofd-opensearch.nixc.us`) + traefik.http.routers.production_sofd_opensearch-dashboards.entrypoints: websecure + traefik.http.routers.production_sofd_opensearch-dashboards.tls.certresolver: letsencryptresolver + traefik.http.routers.production_sofd_opensearch-dashboards.service: production_sofd_opensearch-dashboards + traefik.docker.network: traefik \ No newline at end of file diff --git a/stack.staging.yml b/stack.staging.yml index 2f93beb..f45aa84 100644 --- a/stack.staging.yml +++ b/stack.staging.yml @@ -18,6 +18,13 @@ services: # - opensearch-data1:/usr/share/elasticsearch/data networks: - sofd-net + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == macmini8 + labels: + traefik.enable: "false" fluentd: image: git.nixc.us/nixius/sofd:staging-fluentd @@ -25,13 +32,40 @@ services: FLUENTD_CONF: fluent.conf # volumes: # - ./fluentd/conf:/fluentd/etc - ports: - - "9880:9880" + # ports: + # - "9880:9880" networks: - sofd-net depends_on: - opensearch - + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == macmini8 + # labels: + # traefik.enable: "false" + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == macmini8 + labels: + traefik.enable: "false" + labels: + homepage.group: apps + homepage.name: sofd-fluentd + homepage.href: https://sofd-fluentd.nixc.us/ + homepage.description: sofd-fluentd + traefik.enable: "true" + traefik.http.routers.staging_sofd_fluentd.tls: "true" + traefik.http.services.staging_sofd_fluentd.loadbalancer.server.port: "9880" + traefik.http.routers.staging_sofd_fluentd.rule: Host(`staging.sofd-fluentd.nixc.us`) + traefik.http.routers.staging_sofd_fluentd.entrypoints: websecure + traefik.http.routers.staging_sofd_fluentd.tls.certresolver: letsencryptresolver + traefik.http.routers.staging_sofd_fluentd.service: staging_sofd_fluentd + traefik.docker.network: traefik + opensearch-dashboards: image: opensearchproject/opensearch-dashboards:2.11.1 environment: @@ -41,4 +75,24 @@ services: networks: - sofd-net depends_on: - - opensearch \ No newline at end of file + - opensearch + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == macmini8 + labels: + traefik.enable: "false" + labels: + homepage.group: apps + homepage.name: sofd-opensearch + homepage.href: https://sofd-opensearch.nixc.us/ + homepage.description: sofd-opensearch + traefik.enable: "true" + traefik.http.routers.staging_sofd_opensearch-dashboards.tls: "true" + traefik.http.services.staging_sofd_opensearch-dashboards.loadbalancer.server.port: "9200" + traefik.http.routers.staging_sofd_opensearch-dashboards.rule: Host(`staging.sofd-opensearch.nixc.us`) + traefik.http.routers.staging_sofd_opensearch-dashboards.entrypoints: websecure + traefik.http.routers.staging_sofd_opensearch-dashboards.tls.certresolver: letsencryptresolver + traefik.http.routers.staging_sofd_opensearch-dashboards.service: staging_sofd_opensearch-dashboards + traefik.docker.network: traefik \ No newline at end of file