name: hicom_offline services: backend: depends_on: configurator: condition: service_completed_successfully required: true image: hicom:15-pd-pos networks: default: null platform: linux/amd64 pull_policy: never restart: unless-stopped 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; bench set-config -g chromium_path /usr/bin/chromium-headless-shell; depends_on: db: condition: service_healthy required: true redis-cache: condition: service_started required: true redis-queue: condition: service_started required: true entrypoint: - bash - -c environment: DB_HOST: db DB_PORT: "3306" REDIS_CACHE: redis-cache:6379 REDIS_QUEUE: redis-queue:6379 SOCKETIO_PORT: "9000" image: hicom:15-pd-pos networks: default: null platform: linux/amd64 pull_policy: never restart: on-failure volumes: - type: volume source: sites target: /home/frappe/frappe-bench/sites volume: {} db: command: - --character-set-server=utf8mb4 - --collation-server=utf8mb4_unicode_ci - --skip-character-set-client-handshake - --skip-innodb-read-only-compressed environment: MARIADB_AUTO_UPGRADE: "1" MYSQL_ROOT_PASSWORD: KAAdmHC!234 healthcheck: test: - CMD - healthcheck.sh - --connect - --innodb_initialized timeout: 5s interval: 5s retries: 5 start_period: 5s image: mariadb:11.8 networks: default: null restart: unless-stopped volumes: - type: volume source: db-data target: /var/lib/mysql 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: 100m FRAPPE_SITE_NAME_HEADER: $$host PROXY_READ_TIMEOUT: 120s SOCKETIO: websocket:9000 UPSTREAM_REAL_IP_ADDRESS: 127.0.0.1 UPSTREAM_REAL_IP_HEADER: X-Forwarded-For UPSTREAM_REAL_IP_RECURSIVE: "on" image: hicom:15-pd-pos networks: default: null platform: linux/amd64 ports: - mode: ingress target: 8080 published: "8080" protocol: tcp pull_policy: never restart: unless-stopped 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: hicom:15-pd-pos networks: default: null platform: linux/amd64 pull_policy: never restart: unless-stopped 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: hicom:15-pd-pos networks: default: null platform: linux/amd64 pull_policy: never restart: unless-stopped volumes: - type: volume source: sites target: /home/frappe/frappe-bench/sites volume: {} redis-cache: image: redis:6.2-alpine networks: default: null restart: unless-stopped redis-queue: image: redis:6.2-alpine networks: default: null restart: unless-stopped volumes: - type: volume source: redis-queue-data target: /data volume: {} scheduler: command: - bench - schedule depends_on: configurator: condition: service_completed_successfully required: true image: hicom:15-pd-pos networks: default: null platform: linux/amd64 pull_policy: never restart: unless-stopped 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: hicom:15-pd-pos networks: default: null platform: linux/amd64 pull_policy: never restart: unless-stopped volumes: - type: volume source: sites target: /home/frappe/frappe-bench/sites volume: {} networks: default: name: hicom_offline_default volumes: db-data: name: hicom_offline_db-data redis-queue-data: name: hicom_offline_redis-queue-data sites: name: hicom_offline_sites x-backend-defaults: depends_on: configurator: condition: service_completed_successfully image: hicom:15-pd-pos pull_policy: never restart: unless-stopped volumes: - sites:/home/frappe/frappe-bench/sites x-customizable-image: image: hicom:15-pd-pos pull_policy: never restart: unless-stopped x-depends-on-configurator: depends_on: configurator: condition: service_completed_successfully