Fixed build and env
This commit is contained in:
1 parent
967299888a
commit
b26b8f22a4
4 files changed
+488
-30
No files matched your search
@@ -0,0 +1,108 @@
|
||||
name: erpnext-16
|
||||
|
||||
# --------------------------------------------------
|
||||
# Custom ERPNext image
|
||||
# --------------------------------------------------
|
||||
|
||||
x-erpnext-image: &erpnext-image
|
||||
image: ${CUSTOM_IMAGE:?CUSTOM_IMAGE not set}:${CUSTOM_TAG:?CUSTOM_TAG not set}
|
||||
pull_policy: always
|
||||
|
||||
services:
|
||||
# ------------------------------------------------
|
||||
# Configurator
|
||||
# ------------------------------------------------
|
||||
|
||||
configurator:
|
||||
<<: *erpnext-image
|
||||
|
||||
# ------------------------------------------------
|
||||
# Backend
|
||||
# ------------------------------------------------
|
||||
|
||||
backend:
|
||||
<<: *erpnext-image
|
||||
environment:
|
||||
GUNICORN_THREADS: "${GUNICORN_THREADS:-4}"
|
||||
GUNICORN_WORKERS: "${GUNICORN_WORKERS:-2}"
|
||||
GUNICORN_TIMEOUT: "${GUNICORN_TIMEOUT:-120}"
|
||||
|
||||
# ------------------------------------------------
|
||||
# Frontend / Nginx / Traefik
|
||||
# ------------------------------------------------
|
||||
|
||||
frontend:
|
||||
<<: *erpnext-image
|
||||
|
||||
environment:
|
||||
NGINX_LISTEN_PORT: "${NGINX_LISTEN_PORT:-8080}"
|
||||
FRAPPE_SITE_NAME_HEADER: ${FRAPPE_SITE_NAME_HEADER:-$$host}
|
||||
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}
|
||||
PROXY_READ_TIMEOUT: "${PROXY_READ_TIMEOUT:-120}"
|
||||
CLIENT_MAX_BODY_SIZE: ${CLIENT_MAX_BODY_SIZE:-50m}
|
||||
|
||||
networks:
|
||||
- default
|
||||
- proxy
|
||||
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.docker.network: proxy
|
||||
|
||||
# HTTPS
|
||||
traefik.http.routers.erpnext-16-secure.entrypoints: websecure
|
||||
traefik.http.routers.erpnext-16-secure.rule: ${SITES_RULE:?SITES_RULE not set}
|
||||
traefik.http.routers.erpnext-16-secure.middlewares: default@file
|
||||
traefik.http.routers.erpnext-16-secure.service: erpnext-16
|
||||
traefik.http.routers.erpnext-16-secure.tls: "true"
|
||||
traefik.http.routers.erpnext-16-secure.tls.certresolver: http_resolver
|
||||
|
||||
# HTTP
|
||||
traefik.http.routers.erpnext-16.entrypoints: web
|
||||
traefik.http.routers.erpnext-16.rule: ${SITES_RULE:?SITES_RULE not set}
|
||||
traefik.http.routers.erpnext-16.service: erpnext-16
|
||||
|
||||
# Internal Nginx
|
||||
traefik.http.services.erpnext-16.loadbalancer.server.port: "8080"
|
||||
|
||||
# ------------------------------------------------
|
||||
# Websocket
|
||||
# ------------------------------------------------
|
||||
|
||||
websocket:
|
||||
<<: *erpnext-image
|
||||
|
||||
# ------------------------------------------------
|
||||
# Background workers
|
||||
# ------------------------------------------------
|
||||
|
||||
queue-short:
|
||||
<<: *erpnext-image
|
||||
|
||||
queue-long:
|
||||
<<: *erpnext-image
|
||||
|
||||
# ------------------------------------------------
|
||||
# Scheduler
|
||||
# ------------------------------------------------
|
||||
|
||||
scheduler:
|
||||
<<: *erpnext-image
|
||||
|
||||
# ------------------------------------------------
|
||||
# Dedicated MariaDB
|
||||
# ------------------------------------------------
|
||||
|
||||
db:
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD not set}
|
||||
|
||||
# --------------------------------------------------
|
||||
# External Traefik network
|
||||
# --------------------------------------------------
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
Reference in new issue
Block a user