From 570d5faa2df7cd5eb5984fc9562f3ba63cd0e7e5 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Sun, 8 Dec 2024 05:39:00 -0600 Subject: [PATCH] prep for capraise --- coolify-techops/portmap.md | 120 ++++----- .../docker-compose.yml | 113 --------- .../input-files/info | 1 - .../output-files/info | 1 - .../vendor-files/info | 1 - .../input-files/docker-compose.yml | 238 ++++++++++++++++++ .../{ => vendor-files}/docker-compose.yml | 0 .../vendor-files/info | 3 - 8 files changed, 300 insertions(+), 177 deletions(-) delete mode 100644 coolify-techops/reactive-resume.knownelement.com/docker-compose.yml delete mode 100644 coolify-techops/reactive-resume.knownelement.com/input-files/info delete mode 100644 coolify-techops/reactive-resume.knownelement.com/output-files/info delete mode 100644 coolify-techops/reactive-resume.knownelement.com/vendor-files/info create mode 100644 coolify-techops/streaming.thepeernet.com/input-files/docker-compose.yml rename coolify-techops/streaming.thepeernet.com/{ => vendor-files}/docker-compose.yml (100%) delete mode 100644 coolify-techops/streaming.thepeernet.com/vendor-files/info diff --git a/coolify-techops/portmap.md b/coolify-techops/portmap.md index 523d18f..ff8105d 100644 --- a/coolify-techops/portmap.md +++ b/coolify-techops/portmap.md @@ -1,58 +1,62 @@ -# Cosmos port map - - -| App Name | Port number | Notes | -| --------------- | ----------- | ----- | -| acme | 1001 | | -| agency | 1002 | | -| atak | 1003 | | -| billing | 1004 | | -| boinc | 1005 | | -| certmgr | 1006 | | -| chirpstack | 1007 | | -| craig | 1008 | | -| danswer | 1009 | | -| dashboard | 1010 | | -| elabftw | 1011 | | -| governance | 1012 | | -| graylog | 1013 | | -| grist | 1014 | | -| healthcheck | 1015 | | -| homechart | 1016 | | -| huginn | 1017 | | -| inventree | 1018 | | -| it-fleet | 1019 | | -| kicad-ci | 1020 | | -| langufse | 1021 | | -| lists | 1022 | | -| mailpile | 1023 | | -| netbox | 1024 | | -| netdata | 1025 | | -| netmon | 1026 | | -| oncall | 1027 | | -| openblocks | 1028 | | -| opensearch | 1029 | | -| openvas | 1030 | | -| openvas | 1031 | | -| payroll-engine | 1002 | | -| payrote | 1033 | | -| perplexica | 1034 | | -| phistest | 1035 | | -| platform | 1036 | | -| postiz | 1037 | | -| reactive-resume | 1038 | | -| resgrid | 1039 | | -| reviewboard | 1040 | | -| rundeck | 1041 | | -| satnogs | 1042 | | -| sdrangel | 1043 | | -| sentry | 1044 | | -| signos | 1045 | | -| slurm | 1046 | | -| talent-test | 1047 | | -| thethingsnet | 1048 | | -| tunnel | 1049 | | -| voiceapps | 1050 | | -| warp | 1051 | | -| wazuh | 1052 | | -| apigw | 1053 | | \ No newline at end of file +| App Name | Port number | +| --------------------- | ----------- | +| acme | 1001 | +| agency | 1002 | +| atak | 1003 | +| billing | 1004 | +| boinc | 1005 | +| certmgr | 1006 | +| chirpstack | 1007 | +| craig | 1008 | +| danswer | 1009 | +| dashboard | 1010 | +| elabftw | 1011 | +| governance | 1012 | +| graylog | 1013 | +| grist | 1014 | +| healthcheck | 1015 | +| homechart | 1016 | +| huginn | 1017 | +| inventree | 1018 | +| it-fleet | 1019 | +| kicad-ci | 1020 | +| langufse | 1021 | +| lists | 1022 | +| mailpile | 1023 | +| netbox | 1024 | +| netdata | 1025 | +| netmon | 1026 | +| oncall | 1027 | +| openblocks | 1028 | +| opensearch | 1029 | +| openvas | 1030 | +| payroll-engine | 1032 | +| payroute | 1033 | +| perplexica | 1034 | +| phistest | 1035 | +| platform | 1036 | +| postiz | 1037 | +| resgrid | 1039 | +| reviewboard | 1040 | +| rundeck | 1041 | +| satnogs | 1042 | +| sdrangel | 1043 | +| sentry | 1044 | +| signoz | 1045 | +| slurm | 1046 | +| talent-test | 1047 | +| thethingsnet | 1048 | +| tunnel | 1049 | +| voiceapps | 1050 | +| warp | 1051 | +| wazuh | 1052 | +| apigw | 1053 | +| streaming | 1054 | +| cde | 1055 | +| digital-asset-manager | 1056 | +| functions | 1057 | +| homebox | 1058 | +| openboxes | 1059 | +| jamovi | 1060 | +| jenkins | 1061 | +| tradingdesk | 1062 | \ No newline at end of file diff --git a/coolify-techops/reactive-resume.knownelement.com/docker-compose.yml b/coolify-techops/reactive-resume.knownelement.com/docker-compose.yml deleted file mode 100644 index cf64177..0000000 --- a/coolify-techops/reactive-resume.knownelement.com/docker-compose.yml +++ /dev/null @@ -1,113 +0,0 @@ -# In this Docker Compose example, it assumes that you maintain a reverse proxy externally (or chose not to). -# The only two exposed ports here are from minio (:9000) and the app itself (:3000). -# If these ports are changed, ensure that the env vars passed to the app are also changed accordingly. - -services: - # Database (Postgres) - reactiveresume-postgres: - image: postgres:16-alpine - restart: unless-stopped - container_name: reactiveresume-postgres - volumes: - - reactiveresume-postgres_data:/var/lib/postgresql/data - environment: - POSTGRES_DB: postgres - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"] - interval: 10s - timeout: 5s - retries: 5 - - # Storage (for image uploads) - reactiveresume-minio: - image: minio/minio - restart: unless-stopped - container_name: reactiveresume-minio - command: server /data - ports: - - "1000:9000" - volumes: - - reactiveresume-minio_data:/data - environment: - MINIO_ROOT_USER: minioadmin - MINIO_ROOT_PASSWORD: minioadmin - - # Chrome Browser (for printing and previews) - reactiveresume-chrome: - image: ghcr.io/browserless/chromium:latest - restart: unless-stopped - container_name: reactiveresume-chrome - environment: - TIMEOUT: 10000 - CONCURRENT: 10 - TOKEN: chrome_token - EXIT_ON_HEALTH_FAILURE: true - PRE_REQUEST_HEALTH_CHECK: true - - reactiveresume-app: - image: amruthpillai/reactive-resume:latest - restart: unless-stopped - container_name: reactiveresume-app - ports: - - "1001:3000" - depends_on: - - reactiveresume-postgres - - reactiveresume-minio - - reactiveresume-chrome - environment: - # -- Environment Variables -- - PORT: 1001 - NODE_ENV: production - - # -- URLs -- - PUBLIC_URL: http://localhost:1001 - STORAGE_URL: http://localhost:1000/default - - # -- Printer (Chrome) -- - CHROME_TOKEN: chrome_token - CHROME_URL: ws://reactiveresume-chrome:1001 - - # -- Database (Postgres) -- - DATABASE_URL: postgresql://postgres:postgres@reactiveresume-postgres:5432/postgres - - # -- Auth -- - ACCESS_TOKEN_SECRET: access_token_secret - REFRESH_TOKEN_SECRET: refresh_token_secret - - # -- Emails -- - MAIL_FROM: noreply@localhost - # SMTP_URL: smtp://user:pass@smtp:587 # Optional - - # -- Storage (Minio) -- - STORAGE_ENDPOINT: reactiveresume-minio - STORAGE_PORT: 1000 - STORAGE_REGION: us-east-1 # Optional - STORAGE_BUCKET: default - STORAGE_ACCESS_KEY: minioadmin - STORAGE_SECRET_KEY: minioadmin - STORAGE_USE_SSL: false - STORAGE_SKIP_BUCKET_CHECK: false - - # -- Crowdin (Optional) -- - # CROWDIN_PROJECT_ID: - # CROWDIN_PERSONAL_TOKEN: - - # -- Email (Optional) -- - # DISABLE_SIGNUPS: false - # DISABLE_EMAIL_AUTH: false - - # -- GitHub (Optional) -- - # GITHUB_CLIENT_ID: github_client_id - # GITHUB_CLIENT_SECRET: github_client_secret - # GITHUB_CALLBACK_URL: http://localhost:3000/api/auth/github/callback - - # -- Google (Optional) -- - # GOOGLE_CLIENT_ID: google_client_id - # GOOGLE_CLIENT_SECRET: google_client_secret - # GOOGLE_CALLBACK_URL: http://localhost:3000/api/auth/google/callback - -volumes: - reactiveresume-minio_data: - reactiveresume-postgres_data: \ No newline at end of file diff --git a/coolify-techops/reactive-resume.knownelement.com/input-files/info b/coolify-techops/reactive-resume.knownelement.com/input-files/info deleted file mode 100644 index bc15867..0000000 --- a/coolify-techops/reactive-resume.knownelement.com/input-files/info +++ /dev/null @@ -1 +0,0 @@ -This directory contains template files for the application at FQDN indidicated by the parent directory. They will be processed using mo (bash mustache). diff --git a/coolify-techops/reactive-resume.knownelement.com/output-files/info b/coolify-techops/reactive-resume.knownelement.com/output-files/info deleted file mode 100644 index fe6b01e..0000000 --- a/coolify-techops/reactive-resume.knownelement.com/output-files/info +++ /dev/null @@ -1 +0,0 @@ -This directory contains final docker compose files for the application at FQDN indidicated by the parent directory. diff --git a/coolify-techops/reactive-resume.knownelement.com/vendor-files/info b/coolify-techops/reactive-resume.knownelement.com/vendor-files/info deleted file mode 100644 index 110d921..0000000 --- a/coolify-techops/reactive-resume.knownelement.com/vendor-files/info +++ /dev/null @@ -1 +0,0 @@ -This directory contains files from the vendor unmodified. They serve as a base for the input-files sibling directory diff --git a/coolify-techops/streaming.thepeernet.com/input-files/docker-compose.yml b/coolify-techops/streaming.thepeernet.com/input-files/docker-compose.yml new file mode 100644 index 0000000..8d50803 --- /dev/null +++ b/coolify-techops/streaming.thepeernet.com/input-files/docker-compose.yml @@ -0,0 +1,238 @@ +#open streaming platform docker compose for tsys + +networks: + osp: + external: false + web: + external: true + +services: + osp_ejabberd: + build: ./osp-ejabberd + # image: deamos/osp-ejabberd + restart: unless-stopped + + mem_limit: 256m + memswap_limit: 256m + mem_reservation: 256m + + ports: + - '5280:5280' + - '5222:5222' + environment: + - EJABBERD_XMLRPC_ALLOWIP=0.0.0.0/0 + - EJABBERD_PASSWORD=changeme + - EJABBERD_DOMAIN=osp.example.com + - OSP_API_PROTOCOL=http + - OSP_API_DOMAIN=osp.example.com + #labels: + # - "traefik.enable=true" + # - "traefik.http.routers.ejabberd.entrypoints=websecure" + # - "traefik.http.routers.ejabberd.rule=Host(`ejabberd.example.com`) && PathPrefix(`/http-bind`)" + # - "traefik.http.routers.ejabberd.tls.domains[0].main=ejabberd.example.com" + # - "traefik.http.routers.ejabberd.tls.certresolver=le" + # - "traefik.http.services.ejabberd.loadbalancer.server.port=5280" + volumes: + - "/srv/docker/osp-app/data/ejabberd/database:/opt/ejabberd/database" + networks: + - osp + - web + + osp_core: + build: ./osp-core + # image: deamos/osp-core + restart: unless-stopped + + mem_limit: 2048m + memswap_limit: 2304m + mem_reservation: 2048m + + #labels: + # - "traefik.enable=true" + # - "traefik.http.routers.streamingapp.entrypoints=websecure" + # - "traefik.http.routers.streamingapp.rule=Host(`osp.example.com`)" + # - "traefik.http.routers.streamingapp.tls.domains[0].main=osp.example.com" + # - "traefik.http.routers.streamingapp.tls.certresolver=le" + # - "traefik.http.services.streamingapp.loadBalancer.sticky.cookie.name=server_id" + # - "traefik.http.services.streamingapp.loadBalancer.sticky.cookie.httpOnly=true" + ports: + - '80' + environment: + - OSP_SERVER_ADDRESS=osp.example.com + - OSP_REDIS_HOST=osp_redis + - OSP_REDIS_PORT=6379 + - OSP_REDIS_PASSWORD= + - OSP_CORE_DB=mysql+pymysql://osp:REPLACEOSPDBPASSWORD@osp_db/osp + - OSP_CORE_SECRETKEY=REPLACEME_osp_flask_secret_REPLACEME + - OSP_CORE_PASSWORD_SALT=REPLACEME_osp_flask_salt_REPLACEME + - OSP_CORE_ALLOWREGISTRATION=True + - OSP_CORE_REQUIREEMAILREGISTRATION=False + - OSP_EJABBERD_PASSWORD=changeme + - OSP_EJABBERD_RPCHOST=osp_ejabberd + - OSP_EJABBERD_BOSHDOMAIN=ejabberd.example.com + - OSP_SMTP_SENDAS=osp@email.com + - OSP_SMTP_SERVERADDRESS=smtp.email.com + - OSP_SMTP_SERVERPORT=25 + - OSP_SMTP_ENCRYPTION=none + - OSP_SMTP_USERNAME= + - OSP_SMTP_PASSWORD= + - OSP_RTMP_SERVER=osp_rtmp + # - TZ=ETC/UTC + volumes: + - "/srv/docker/osp-app/data/www:/var/www" + - "/srv/docker/osp-app/data/tmpfs/live:/var/www/live" + - "/srv/docker/osp-app/data/tmpfs/live-adapt:/var/www/live-adapt" + - "/srv/docker/osp-app/data/tmpfs/stream-thumb:/var/www/stream-thumb" + networks: + - osp + - web + depends_on: + - osp_db + - osp_redis + - osp_ejabberd + entrypoint: ["/opt/osp/docker-files.d/wait-for-it.sh", "osp_db:3306", "-t", "60", "--", "/opt/osp/docker-files.d/entrypoint.sh"] + + osp_celery: + build: ./osp-core + # image: deamos/osp-core + restart: unless-stopped + + mem_limit: 2048m + memswap_limit: 2304m + mem_reservation: 2048m + + environment: + - OSP_SERVER_ADDRESS=osp.example.com + - OSP_REDIS_HOST=osp_redis + - OSP_REDIS_PORT=6379 + - OSP_REDIS_PASSWORD= + - OSP_CORE_DB=mysql+pymysql://osp:REPLACEOSPDBPASSWORD@osp_db/osp + - OSP_CORE_SECRETKEY=REPLACEME_osp_flask_secret_REPLACEME + - OSP_CORE_PASSWORD_SALT=REPLACEME_osp_flask_salt_REPLACEME + - OSP_CORE_ALLOWREGISTRATION=True + - OSP_CORE_REQUIREEMAILREGISTRATION=False + - OSP_EJABBERD_PASSWORD=changeme + - OSP_EJABBERD_RPCHOST=osp_ejabberd + - OSP_EJABBERD_BOSHDOMAIN=ejabberd.example.com + - OSP_SMTP_SENDAS=osp@email.com + - OSP_SMTP_SERVERADDRESS=smtp.email.com + - OSP_SMTP_SERVERPORT=25 + - OSP_SMTP_ENCRYPTION=none + - OSP_SMTP_USERNAME= + - OSP_SMTP_PASSWORD= + - OSP_CORE_TYPE=celery + # - TZ=ETC/UTC + volumes: + - "/srv/docker/osp-app/data/www:/var/www" + - "/srv/docker/osp-app/data/tmpfs/live:/var/www/live" + - "/srv/docker/osp-app/data/tmpfs/live-adapt:/var/www/live-adapt" + - "/srv/docker/osp-app/data/tmpfs/stream-thumb:/var/www/stream-thumb" + networks: + - osp + depends_on: + - osp_db + - osp_redis + - osp_ejabberd + - osp_core + entrypoint: ["/opt/osp/docker-files.d/wait-for-it.sh", "osp_db:3306", "-t", "60", "--", "/opt/osp/docker-files.d/entrypoint.sh"] + + osp_celery_beat: + build: ./osp-core + # image: deamos/osp-core + restart: unless-stopped + + mem_limit: 2048m + memswap_limit: 2304m + mem_reservation: 2048m + + environment: + - OSP_SERVER_ADDRESS=osp.example.com + - OSP_REDIS_HOST=osp_redis + - OSP_REDIS_PORT=6379 + - OSP_REDIS_PASSWORD= + - OSP_CORE_DB=mysql+pymysql://osp:REPLACEOSPDBPASSWORD@osp_db/osp + - OSP_CORE_SECRETKEY=REPLACEME_osp_flask_secret_REPLACEME + - OSP_CORE_PASSWORD_SALT=REPLACEME_osp_flask_salt_REPLACEME + - OSP_CORE_ALLOWREGISTRATION=True + - OSP_CORE_REQUIREEMAILREGISTRATION=False + - OSP_EJABBERD_PASSWORD=changeme + - OSP_EJABBERD_RPCHOST=osp_ejabberd + - OSP_EJABBERD_BOSHDOMAIN=ejabberd.example.com + - OSP_SMTP_SENDAS=osp@email.com + - OSP_SMTP_SERVERADDRESS=smtp.email.com + - OSP_SMTP_SERVERPORT=25 + - OSP_SMTP_ENCRYPTION=none + - OSP_SMTP_USERNAME= + - OSP_SMTP_PASSWORD= + - OSP_CORE_TYPE=beat + # - TZ=ETC/UTC + volumes: + - "/srv/docker/osp-app/data/www:/var/www" + - "/srv/docker/osp-app/data/tmpfs/live:/var/www/live" + - "/srv/docker/osp-app/data/tmpfs/live-adapt:/var/www/live-adapt" + - "/srv/docker/osp-app/data/tmpfs/stream-thumb:/var/www/stream-thumb" + networks: + - osp + depends_on: + - osp_db + - osp_redis + - osp_ejabberd + - osp_core + entrypoint: [ "/opt/osp/docker-files.d/wait-for-it.sh", "osp_db:3306", "-t", "60", "--", "/opt/osp/docker-files.d/entrypoint.sh" ] + + osp_rtmp: + build: ./osp-rtmp + # image: deamos/osp-rtmp + restart: unless-stopped + mem_limit: 2048m + memswap_limit: 2304m + mem_reservation: 2048m + + ports: + - '1935:1935' + environment: + - OSP_API_HOST=http://osp_core + - OSP_RTMP_SECRETKEY=changeme + volumes: + - "/srv/docker/osp-app/data/www:/var/www" + - "/srv/docker/osp-app/data/tmpfs/live:/var/www/live" + - "/srv/docker/osp-app/data/tmpfs/live-adapt:/var/www/live-adapt" + - "/srv/docker/osp-app/data/tmpfs/stream-thumb:/var/www/stream-thumb" + networks: + - osp + depends_on: + - osp_core + + osp_db: + image: mariadb + restart: unless-stopped + mem_limit: 256m + memswap_limit: 512m + mem_reservation: 256m + command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW + volumes: + - /srv/docker/osp-mariadb:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=REPLACEOSPROOTDBPASSWORD + - MYSQL_PASSWORD=REPLACEOSPDBPASSWORD + - MYSQL_DATABASE=osp + - MYSQL_USER=osp + networks: + - osp + healthcheck: + test: "/usr/bin/mysql --user=root --password=$$MYSQL_ROOT_PASSWORD --execute \"SHOW DATABASES;\"" + interval: 1m + timeout: 1s + retries: 5 + start_period: 30s + + osp_redis: + image: redis + restart: unless-stopped + mem_limit: 128m + memswap_limit: 256m + mem_reservation: 128m + networks: + - osp + + diff --git a/coolify-techops/streaming.thepeernet.com/docker-compose.yml b/coolify-techops/streaming.thepeernet.com/vendor-files/docker-compose.yml similarity index 100% rename from coolify-techops/streaming.thepeernet.com/docker-compose.yml rename to coolify-techops/streaming.thepeernet.com/vendor-files/docker-compose.yml diff --git a/coolify-techops/streaming.thepeernet.com/vendor-files/info b/coolify-techops/streaming.thepeernet.com/vendor-files/info deleted file mode 100644 index a3f6c7e..0000000 --- a/coolify-techops/streaming.thepeernet.com/vendor-files/info +++ /dev/null @@ -1,3 +0,0 @@ -This directory contains files from the vendor unmodified. They serve as a base for the input-files sibling directory - -https://github.com/Payroll-Engine/PayrollEngine/wiki \ No newline at end of file