From 2065d45b151b7b4551afa788a8a1db4c0e13c79d Mon Sep 17 00:00:00 2001 From: Flexusma Date: Thu, 4 Jul 2024 22:38:42 +0200 Subject: [PATCH] update --- apps.json | 8 ++ os-erpnext.yaml | 214 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 222 insertions(+) create mode 100644 os-erpnext.yaml diff --git a/apps.json b/apps.json index 8f1ac9e8..0651fefb 100644 --- a/apps.json +++ b/apps.json @@ -11,6 +11,14 @@ "url": "https://github.com/frappe/helpdesk", "branch": "main" }, + { + "url":"https://github.com/alyf-de/erpnext_germany", + "branch":"version-15" + }, + { + "url":"https://github.com/alyf-de/banking", + "branch":"version-15" + }, { "url":"https://github.com/Grynn-GmbH/Swiss-E-invoicing-ERPNext", "branch":"master" diff --git a/os-erpnext.yaml b/os-erpnext.yaml new file mode 100644 index 00000000..85190f3f --- /dev/null +++ b/os-erpnext.yaml @@ -0,0 +1,214 @@ +name: os-erpnext +services: + backend: + depends_on: + configurator: + condition: service_completed_successfully + required: true + image: frappe/erpnext:v15.24.0 + networks: + bench-network: null + mariadb-network: null + platform: linux/amd64 + volumes: + - type: volume + source: sites + target: /home/frappe/frappe-bench/sites + volume: {} + configurator: + command: + - | + ls -1 apps > sites/apps.txt; bench set-config -g db_host $$DB_HOST; bench set-config -gp db_port $$DB_PORT; bench set-config -g redis_cache "redis://$$REDIS_CACHE"; bench set-config -g redis_queue "redis://$$REDIS_QUEUE"; bench set-config -g redis_socketio "redis://$$REDIS_QUEUE"; bench set-config -gp socketio_port $$SOCKETIO_PORT; + depends_on: + redis-cache: + condition: service_started + required: true + redis-queue: + condition: service_started + required: true + entrypoint: + - bash + - -c + environment: + DB_HOST: "" + DB_PORT: "" + REDIS_CACHE: redis-cache:6379 + REDIS_QUEUE: redis-queue:6379 + SOCKETIO_PORT: "9000" + image: frappe/erpnext:v15.24.0 + networks: + bench-network: null + mariadb-network: null + platform: linux/amd64 + volumes: + - type: volume + source: sites + target: /home/frappe/frappe-bench/sites + volume: {} + frontend: + command: + - nginx-entrypoint.sh + depends_on: + backend: + condition: service_started + required: true + websocket: + condition: service_started + required: true + environment: + BACKEND: backend:8000 + CLIENT_MAX_BODY_SIZE: 50m + FRAPPE_SITE_NAME_HEADER: $$host + PROXY_READ_TIMEOUT: "120" + SOCKETIO: websocket:9000 + UPSTREAM_REAL_IP_ADDRESS: 127.0.0.1 + UPSTREAM_REAL_IP_HEADER: X-Forwarded-For + UPSTREAM_REAL_IP_RECURSIVE: "off" + image: frappe/erpnext:v15.24.0 + labels: + traefik.docker.network: traefik-public + traefik.enable: "true" + traefik.http.routers.erp-akazia-eu-http.entrypoints: http + traefik.http.routers.erp-akazia-eu-http.middlewares: https-redirect + traefik.http.routers.erp-akazia-eu-http.rule: Host(`erp.akazia.eu`) + traefik.http.routers.erp-akazia-eu-http.service: erp-akazia-eu + traefik.http.routers.erp-akazia-eu-https.entrypoints: https + traefik.http.routers.erp-akazia-eu-https.rule: Host(`erp.akazia.eu`) + traefik.http.routers.erp-akazia-eu-https.service: erp-akazia-eu + traefik.http.routers.erp-akazia-eu-https.tls: "true" + traefik.http.routers.erp-akazia-eu-https.tls.certresolver: le + traefik.http.services.erp-akazia-eu.loadbalancer.server.port: "8080" + networks: + bench-network: null + traefik-public: null + platform: linux/amd64 + volumes: + - type: volume + source: sites + target: /home/frappe/frappe-bench/sites + volume: {} + queue-long: + command: + - bench + - worker + - --queue + - long,default,short + depends_on: + configurator: + condition: service_completed_successfully + required: true + image: frappe/erpnext:v15.24.0 + networks: + bench-network: null + mariadb-network: null + platform: linux/amd64 + volumes: + - type: volume + source: sites + target: /home/frappe/frappe-bench/sites + volume: {} + queue-short: + command: + - bench + - worker + - --queue + - short,default + depends_on: + configurator: + condition: service_completed_successfully + required: true + image: frappe/erpnext:v15.24.0 + networks: + bench-network: null + mariadb-network: null + platform: linux/amd64 + volumes: + - type: volume + source: sites + target: /home/frappe/frappe-bench/sites + volume: {} + redis-cache: + image: redis:6.2-alpine + networks: + bench-network: null + mariadb-network: null + volumes: + - type: volume + source: redis-cache-data + target: /data + volume: {} + redis-queue: + image: redis:6.2-alpine + networks: + bench-network: null + mariadb-network: null + volumes: + - type: volume + source: redis-queue-data + target: /data + volume: {} + scheduler: + command: + - bench + - schedule + depends_on: + configurator: + condition: service_completed_successfully + required: true + image: frappe/erpnext:v15.24.0 + networks: + bench-network: null + mariadb-network: null + platform: linux/amd64 + volumes: + - type: volume + source: sites + target: /home/frappe/frappe-bench/sites + volume: {} + websocket: + command: + - node + - /home/frappe/frappe-bench/apps/frappe/socketio.js + depends_on: + configurator: + condition: service_completed_successfully + required: true + image: frappe/erpnext:v15.24.0 + networks: + bench-network: null + mariadb-network: null + platform: linux/amd64 + volumes: + - type: volume + source: sites + target: /home/frappe/frappe-bench/sites + volume: {} +networks: + bench-network: + name: erp-akazia-eu + mariadb-network: + name: mariadb-network + external: true + traefik-public: + name: traefik-public + external: true +volumes: + redis-cache-data: + name: os-erpnext_redis-cache-data + redis-queue-data: + name: os-erpnext_redis-queue-data + sites: + name: os-erpnext_sites +x-backend-defaults: + depends_on: + configurator: + condition: service_completed_successfully + image: frappe/erpnext:v15.24.0 + volumes: + - sites:/home/frappe/frappe-bench/sites +x-customizable-image: + image: frappe/erpnext:v15.24.0 +x-depends-on-configurator: + depends_on: + configurator: + condition: service_completed_successfully