mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 08:15:09 +00:00
commit
8e9fc74cd9
3 changed files with 17 additions and 67 deletions
12
compose.yaml
12
compose.yaml
|
|
@ -9,9 +9,7 @@ x-depends-on-configurator: &depends_on_configurator
|
||||||
x-backend-defaults: &backend_defaults
|
x-backend-defaults: &backend_defaults
|
||||||
<<: [*depends_on_configurator, *customizable_image]
|
<<: [*depends_on_configurator, *customizable_image]
|
||||||
volumes:
|
volumes:
|
||||||
- erp-sites:/home/zapal/frappe-bench/sites
|
- sites:/home/zapal/frappe-bench/sites
|
||||||
- erp-assets:/home/zapal/frappe-bench/sites/assets
|
|
||||||
- erp-logs:/home/zapal/frappe-bench/logs
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
configurator:
|
configurator:
|
||||||
|
|
@ -54,7 +52,7 @@ services:
|
||||||
PROXY_READ_TIMEOUT: ${PROXY_READ_TIMEOUT:-120}
|
PROXY_READ_TIMEOUT: ${PROXY_READ_TIMEOUT:-120}
|
||||||
CLIENT_MAX_BODY_SIZE: ${CLIENT_MAX_BODY_SIZE:-50m}
|
CLIENT_MAX_BODY_SIZE: ${CLIENT_MAX_BODY_SIZE:-50m}
|
||||||
volumes:
|
volumes:
|
||||||
- erp-sites:/home/zapal/frappe-bench/sites
|
- sites:/home/zapal/frappe-bench/sites
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
- websocket
|
- websocket
|
||||||
|
|
@ -65,7 +63,7 @@ services:
|
||||||
- node
|
- node
|
||||||
- /home/zapal/frappe-bench/apps/frappe/socketio.js
|
- /home/zapal/frappe-bench/apps/frappe/socketio.js
|
||||||
volumes:
|
volumes:
|
||||||
- erp-sites:/home/zapal/frappe-bench/sites
|
- sites:/home/zapal/frappe-bench/sites
|
||||||
|
|
||||||
queue-short:
|
queue-short:
|
||||||
<<: *backend_defaults
|
<<: *backend_defaults
|
||||||
|
|
@ -80,6 +78,4 @@ services:
|
||||||
command: bench schedule
|
command: bench schedule
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
erp-sites:
|
sites:
|
||||||
erp-assets:
|
|
||||||
erp-logs:
|
|
||||||
|
|
|
||||||
|
|
@ -10,17 +10,9 @@ services:
|
||||||
default: null
|
default: null
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- type: volume
|
||||||
source: erp-sites
|
source: sites
|
||||||
target: /home/zapal/frappe-bench/sites
|
target: /home/zapal/frappe-bench/sites
|
||||||
volume: {}
|
volume: {}
|
||||||
- type: volume
|
|
||||||
source: erp-assets
|
|
||||||
target: /home/zapal/frappe-bench/sites/assets
|
|
||||||
volume: {}
|
|
||||||
- type: volume
|
|
||||||
source: erp-logs
|
|
||||||
target: /home/zapal/frappe-bench/logs
|
|
||||||
volume: {}
|
|
||||||
configurator:
|
configurator:
|
||||||
command:
|
command:
|
||||||
- |
|
- |
|
||||||
|
|
@ -49,17 +41,9 @@ services:
|
||||||
default: null
|
default: null
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- type: volume
|
||||||
source: erp-sites
|
source: sites
|
||||||
target: /home/zapal/frappe-bench/sites
|
target: /home/zapal/frappe-bench/sites
|
||||||
volume: {}
|
volume: {}
|
||||||
- type: volume
|
|
||||||
source: erp-assets
|
|
||||||
target: /home/zapal/frappe-bench/sites/assets
|
|
||||||
volume: {}
|
|
||||||
- type: volume
|
|
||||||
source: erp-logs
|
|
||||||
target: /home/zapal/frappe-bench/logs
|
|
||||||
volume: {}
|
|
||||||
db:
|
db:
|
||||||
command:
|
command:
|
||||||
- --character-set-server=utf8mb4
|
- --character-set-server=utf8mb4
|
||||||
|
|
@ -111,7 +95,7 @@ services:
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- type: volume
|
||||||
source: erp-sites
|
source: sites
|
||||||
target: /home/zapal/frappe-bench/sites
|
target: /home/zapal/frappe-bench/sites
|
||||||
volume: {}
|
volume: {}
|
||||||
queue-long:
|
queue-long:
|
||||||
|
|
@ -129,17 +113,9 @@ services:
|
||||||
default: null
|
default: null
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- type: volume
|
||||||
source: erp-sites
|
source: sites
|
||||||
target: /home/zapal/frappe-bench/sites
|
target: /home/zapal/frappe-bench/sites
|
||||||
volume: {}
|
volume: {}
|
||||||
- type: volume
|
|
||||||
source: erp-assets
|
|
||||||
target: /home/zapal/frappe-bench/sites/assets
|
|
||||||
volume: {}
|
|
||||||
- type: volume
|
|
||||||
source: erp-logs
|
|
||||||
target: /home/zapal/frappe-bench/logs
|
|
||||||
volume: {}
|
|
||||||
queue-short:
|
queue-short:
|
||||||
command:
|
command:
|
||||||
- bench
|
- bench
|
||||||
|
|
@ -155,17 +131,9 @@ services:
|
||||||
default: null
|
default: null
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- type: volume
|
||||||
source: erp-sites
|
source: sites
|
||||||
target: /home/zapal/frappe-bench/sites
|
target: /home/zapal/frappe-bench/sites
|
||||||
volume: {}
|
volume: {}
|
||||||
- type: volume
|
|
||||||
source: erp-assets
|
|
||||||
target: /home/zapal/frappe-bench/sites/assets
|
|
||||||
volume: {}
|
|
||||||
- type: volume
|
|
||||||
source: erp-logs
|
|
||||||
target: /home/zapal/frappe-bench/logs
|
|
||||||
volume: {}
|
|
||||||
redis-cache:
|
redis-cache:
|
||||||
image: redis:6.2-alpine
|
image: redis:6.2-alpine
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -197,17 +165,9 @@ services:
|
||||||
default: null
|
default: null
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- type: volume
|
||||||
source: erp-sites
|
source: sites
|
||||||
target: /home/zapal/frappe-bench/sites
|
target: /home/zapal/frappe-bench/sites
|
||||||
volume: {}
|
volume: {}
|
||||||
- type: volume
|
|
||||||
source: erp-assets
|
|
||||||
target: /home/zapal/frappe-bench/sites/assets
|
|
||||||
volume: {}
|
|
||||||
- type: volume
|
|
||||||
source: erp-logs
|
|
||||||
target: /home/zapal/frappe-bench/logs
|
|
||||||
volume: {}
|
|
||||||
websocket:
|
websocket:
|
||||||
command:
|
command:
|
||||||
- node
|
- node
|
||||||
|
|
@ -221,7 +181,7 @@ services:
|
||||||
default: null
|
default: null
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- type: volume
|
||||||
source: erp-sites
|
source: sites
|
||||||
target: /home/zapal/frappe-bench/sites
|
target: /home/zapal/frappe-bench/sites
|
||||||
volume: {}
|
volume: {}
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -230,25 +190,19 @@ networks:
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
db-data:
|
||||||
name: erp_db-data
|
name: erp_db-data
|
||||||
erp-assets:
|
|
||||||
name: erp_erp-assets
|
|
||||||
erp-logs:
|
|
||||||
name: erp_erp-logs
|
|
||||||
erp-sites:
|
|
||||||
name: erp_erp-sites
|
|
||||||
redis-cache-data:
|
redis-cache-data:
|
||||||
name: erp_redis-cache-data
|
name: erp_redis-cache-data
|
||||||
redis-queue-data:
|
redis-queue-data:
|
||||||
name: erp_redis-queue-data
|
name: erp_redis-queue-data
|
||||||
|
sites:
|
||||||
|
name: erp_sites
|
||||||
x-backend-defaults:
|
x-backend-defaults:
|
||||||
depends_on:
|
depends_on:
|
||||||
configurator:
|
configurator:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
image: zapal/erp:latest
|
image: zapal/erp:latest
|
||||||
volumes:
|
volumes:
|
||||||
- erp-sites:/home/zapal/frappe-bench/sites
|
- sites:/home/zapal/frappe-bench/sites
|
||||||
- erp-assets:/home/zapal/frappe-bench/sites/assets
|
|
||||||
- erp-logs:/home/zapal/frappe-bench/logs
|
|
||||||
x-customizable-image:
|
x-customizable-image:
|
||||||
image: zapal/erp:latest
|
image: zapal/erp:latest
|
||||||
x-depends-on-configurator:
|
x-depends-on-configurator:
|
||||||
|
|
|
||||||
|
|
@ -119,9 +119,9 @@ RUN bench init \
|
||||||
|
|
||||||
WORKDIR /home/zapal/frappe-bench
|
WORKDIR /home/zapal/frappe-bench
|
||||||
|
|
||||||
RUN bench get-app --branch=${ERPNEXT_BRANCH} --resolve-deps erpnext ${ERPNEXT_REPO}
|
RUN cd /home/zapal/frappe-bench && bench get-app --branch=${ERPNEXT_BRANCH} --resolve-deps erpnext ${ERPNEXT_REPO}
|
||||||
RUN bench get-app --branch=${HRMS_BRANCH} --resolve-deps hrms ${HRMS_REPO}
|
RUN cd /home/zapal/frappe-bench && bench get-app --branch=${HRMS_BRANCH} --resolve-deps hrms ${HRMS_REPO}
|
||||||
# RUN bench get-app --branch=${INSIGHTS_BRANCH} --resolve-deps insights ${INSIGHTS_REPO}
|
# RUN cd /home/zapal/frappe-bench && bench get-app --branch=${INSIGHTS_BRANCH} --resolve-deps insights ${INSIGHTS_REPO}
|
||||||
|
|
||||||
RUN echo "frappe\nhrms\nerpnext" > sites/apps.txt
|
RUN echo "frappe\nhrms\nerpnext" > sites/apps.txt
|
||||||
RUN echo "{}" > sites/common_site_config.json
|
RUN echo "{}" > sites/common_site_config.json
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue