270 lines
8.3 KiB
YAML
270 lines
8.3 KiB
YAML
# GENERATED FILE — do not edit by hand.
|
|
# Produced by ./generate-dokploy-compose.sh from docker-compose.yml + the
|
|
# frappe_docker files it includes. Regenerate after changing either, or
|
|
# any other time you deploy (see MARKETING_DEPLOY_TOKEN above).
|
|
# This is what Dokploy's Compose Path should point to — not
|
|
# docker-compose.yml itself, which Dokploy's validator rejects (see
|
|
# this script's own header comment for why).
|
|
#
|
|
name: sightbox
|
|
networks:
|
|
default:
|
|
name: sightbox_default
|
|
services:
|
|
backend:
|
|
depends_on:
|
|
configurator:
|
|
condition: service_completed_successfully
|
|
environment:
|
|
GUNICORN_THREADS: ${GUNICORN_THREADS:-4}
|
|
GUNICORN_TIMEOUT: ${GUNICORN_TIMEOUT:-120}
|
|
GUNICORN_WORKERS: ${GUNICORN_WORKERS:-2}
|
|
image: ${CUSTOM_IMAGE:-frappe/erpnext}:${CUSTOM_TAG:-$ERPNEXT_VERSION}
|
|
networks:
|
|
default: null
|
|
platform: ${FRAPPE_IMAGE_PLATFORM:-linux/amd64}
|
|
pull_policy: ${PULL_POLICY:-always}
|
|
restart: ${RESTART_POLICY:-unless-stopped}
|
|
volumes:
|
|
- source: sites
|
|
target: /home/frappe/frappe-bench/sites
|
|
type: volume
|
|
volume: {}
|
|
backend-billing:
|
|
depends_on:
|
|
backend:
|
|
condition: service_started
|
|
environment:
|
|
CONTACT_LEAD_FROM_EMAIL: ${CONTACT_LEAD_FROM_EMAIL:-onboarding@resend.dev}
|
|
CONTACT_LEAD_NOTIFY_EMAIL: ${CONTACT_LEAD_NOTIFY_EMAIL:-}
|
|
ENVIRONMENT: ${ENVIRONMENT:-production}
|
|
RESEND_API_KEY: ${RESEND_API_KEY:-}
|
|
SENTRY_DSN: ${SENTRY_DSN:-}
|
|
STATE_STORE_PATH: ${STATE_STORE_PATH:-/data/state.db}
|
|
TENANTS_CONFIG_PATH: ${TENANTS_CONFIG_PATH:-tenants.json}
|
|
image: ${BACKEND_BILLING_IMAGE:-sightbox-backend-billing}:${BACKEND_BILLING_TAG:-latest}
|
|
networks:
|
|
default: null
|
|
ports:
|
|
- ${BILLING_PUBLISH_PORT:-8001}:8000
|
|
pull_policy: ${BACKEND_BILLING_PULL_POLICY:-never}
|
|
restart: unless-stopped
|
|
volumes:
|
|
- source: billing-state
|
|
target: /data
|
|
type: volume
|
|
volume: {}
|
|
- read_only: true
|
|
source: ${TENANTS_JSON_PATH:-./backend/tenants.json}
|
|
target: /app/tenants.json
|
|
type: bind
|
|
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
|
|
redis-cache:
|
|
condition: service_started
|
|
redis-queue:
|
|
condition: service_started
|
|
entrypoint:
|
|
- bash
|
|
- -c
|
|
environment:
|
|
- DB_HOST=db
|
|
- DB_PORT=3306
|
|
- REDIS_CACHE=redis-cache:6379
|
|
- REDIS_QUEUE=redis-queue:6379
|
|
- SOCKETIO_PORT=9000
|
|
image: ${CUSTOM_IMAGE:-frappe/erpnext}:${CUSTOM_TAG:-$ERPNEXT_VERSION}
|
|
networks:
|
|
default: null
|
|
platform: ${FRAPPE_IMAGE_PLATFORM:-linux/amd64}
|
|
pull_policy: ${PULL_POLICY:-always}
|
|
restart: on-failure
|
|
volumes:
|
|
- source: sites
|
|
target: /home/frappe/frappe-bench/sites
|
|
type: volume
|
|
volume: {}
|
|
db:
|
|
command:
|
|
- --character-set-server=utf8mb4
|
|
- --collation-server=utf8mb4_unicode_ci
|
|
- --skip-character-set-client-handshake
|
|
environment:
|
|
MARIADB_AUTO_UPGRADE: 1
|
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-123}
|
|
healthcheck:
|
|
interval: 5s
|
|
retries: 5
|
|
start_period: 5s
|
|
test:
|
|
- CMD
|
|
- healthcheck.sh
|
|
- --connect
|
|
- --innodb_initialized
|
|
timeout: 5s
|
|
image: mariadb:11.8
|
|
networks:
|
|
default: null
|
|
restart: unless-stopped
|
|
volumes:
|
|
- source: db-data
|
|
target: /var/lib/mysql
|
|
type: volume
|
|
volume: {}
|
|
frontend:
|
|
command:
|
|
- nginx-entrypoint.sh
|
|
depends_on:
|
|
backend:
|
|
condition: service_started
|
|
websocket:
|
|
condition: service_started
|
|
environment:
|
|
BACKEND: backend:8000
|
|
CLIENT_MAX_BODY_SIZE: ${CLIENT_MAX_BODY_SIZE:-50m}
|
|
FRAPPE_SITE_NAME_HEADER: ${FRAPPE_SITE_NAME_HEADER:-$$host}
|
|
PROXY_READ_TIMEOUT: ${PROXY_READ_TIMEOUT:-120}
|
|
SOCKETIO: websocket:9000
|
|
UPSTREAM_REAL_IP_ADDRESS: ${UPSTREAM_REAL_IP_ADDRESS:-127.0.0.1}
|
|
UPSTREAM_REAL_IP_HEADER: ${UPSTREAM_REAL_IP_HEADER:-X-Forwarded-For}
|
|
UPSTREAM_REAL_IP_RECURSIVE: ${UPSTREAM_REAL_IP_RECURSIVE:-off}
|
|
image: ${CUSTOM_IMAGE:-frappe/erpnext}:${CUSTOM_TAG:-$ERPNEXT_VERSION}
|
|
networks:
|
|
default: null
|
|
platform: ${FRAPPE_IMAGE_PLATFORM:-linux/amd64}
|
|
ports:
|
|
- ${HTTP_PUBLISH_PORT:-8080}:8080
|
|
pull_policy: ${PULL_POLICY:-always}
|
|
restart: ${RESTART_POLICY:-unless-stopped}
|
|
volumes:
|
|
- source: sites
|
|
target: /home/frappe/frappe-bench/sites
|
|
type: volume
|
|
volume: {}
|
|
marketing:
|
|
depends_on:
|
|
backend-billing:
|
|
condition: service_started
|
|
image: nginx:alpine
|
|
labels:
|
|
- content-hash=c8be366
|
|
networks:
|
|
default: null
|
|
ports:
|
|
- ${MARKETING_PUBLISH_PORT:-8091}:80
|
|
restart: unless-stopped
|
|
volumes:
|
|
- bind:
|
|
create_host_path: true
|
|
read_only: true
|
|
source: ./website/website-bettersightbox/bettersightbox-index.html
|
|
target: /usr/share/nginx/html/index.html
|
|
type: bind
|
|
- bind:
|
|
create_host_path: true
|
|
read_only: true
|
|
source: ./website/website-bettersightbox/assets
|
|
target: /usr/share/nginx/html/assets
|
|
type: bind
|
|
- bind:
|
|
create_host_path: true
|
|
read_only: true
|
|
source: ./website/website-bettersightbox/marketing-nginx.conf
|
|
target: /etc/nginx/conf.d/default.conf
|
|
type: bind
|
|
queue-long:
|
|
command: bench worker --queue long,default,short
|
|
depends_on:
|
|
configurator:
|
|
condition: service_completed_successfully
|
|
image: ${CUSTOM_IMAGE:-frappe/erpnext}:${CUSTOM_TAG:-$ERPNEXT_VERSION}
|
|
networks:
|
|
default: null
|
|
platform: ${FRAPPE_IMAGE_PLATFORM:-linux/amd64}
|
|
pull_policy: ${PULL_POLICY:-always}
|
|
restart: ${RESTART_POLICY:-unless-stopped}
|
|
volumes:
|
|
- source: sites
|
|
target: /home/frappe/frappe-bench/sites
|
|
type: volume
|
|
volume: {}
|
|
queue-short:
|
|
command: bench worker --queue short,default
|
|
depends_on:
|
|
configurator:
|
|
condition: service_completed_successfully
|
|
image: ${CUSTOM_IMAGE:-frappe/erpnext}:${CUSTOM_TAG:-$ERPNEXT_VERSION}
|
|
networks:
|
|
default: null
|
|
platform: ${FRAPPE_IMAGE_PLATFORM:-linux/amd64}
|
|
pull_policy: ${PULL_POLICY:-always}
|
|
restart: ${RESTART_POLICY:-unless-stopped}
|
|
volumes:
|
|
- source: sites
|
|
target: /home/frappe/frappe-bench/sites
|
|
type: volume
|
|
volume: {}
|
|
redis-cache:
|
|
image: redis:8.6-alpine
|
|
networks:
|
|
default: null
|
|
restart: unless-stopped
|
|
redis-queue:
|
|
image: redis:8.6-alpine
|
|
networks:
|
|
default: null
|
|
restart: unless-stopped
|
|
volumes:
|
|
- source: redis-queue-data
|
|
target: /data
|
|
type: volume
|
|
volume: {}
|
|
scheduler:
|
|
command: bench schedule
|
|
depends_on:
|
|
configurator:
|
|
condition: service_completed_successfully
|
|
image: ${CUSTOM_IMAGE:-frappe/erpnext}:${CUSTOM_TAG:-$ERPNEXT_VERSION}
|
|
networks:
|
|
default: null
|
|
platform: ${FRAPPE_IMAGE_PLATFORM:-linux/amd64}
|
|
pull_policy: ${PULL_POLICY:-always}
|
|
restart: ${RESTART_POLICY:-unless-stopped}
|
|
volumes:
|
|
- source: sites
|
|
target: /home/frappe/frappe-bench/sites
|
|
type: volume
|
|
volume: {}
|
|
websocket:
|
|
command:
|
|
- node
|
|
- /home/frappe/frappe-bench/apps/frappe/socketio.js
|
|
depends_on:
|
|
configurator:
|
|
condition: service_completed_successfully
|
|
image: ${CUSTOM_IMAGE:-frappe/erpnext}:${CUSTOM_TAG:-$ERPNEXT_VERSION}
|
|
networks:
|
|
default: null
|
|
platform: ${FRAPPE_IMAGE_PLATFORM:-linux/amd64}
|
|
pull_policy: ${PULL_POLICY:-always}
|
|
restart: ${RESTART_POLICY:-unless-stopped}
|
|
volumes:
|
|
- source: sites
|
|
target: /home/frappe/frappe-bench/sites
|
|
type: volume
|
|
volume: {}
|
|
volumes:
|
|
billing-state:
|
|
name: sightbox_billing-state
|
|
db-data:
|
|
name: sightbox_db-data
|
|
redis-queue-data:
|
|
name: sightbox_redis-queue-data
|
|
sites:
|
|
name: sightbox_sites
|