2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-01-24 23:58:27 +00:00

Move assets volume to main compose file

This commit is contained in:
Lev Vereshchagin 2021-12-15 09:14:44 +03:00
parent 364bec2872
commit 725979dc05
2 changed files with 4 additions and 8 deletions

View File

@ -10,6 +10,7 @@ services:
SOCKETIO_PORT: 9000
volumes:
- sites:/home/frappe/frappe-bench/sites
- assets:/home/frappe/frappe-bench/sites/assets
depends_on:
db:
condition: service_healthy
@ -46,6 +47,7 @@ services:
FRAPPE_SITE_NAME_HEADER: $$host
volumes:
- sites:/usr/share/nginx/html/sites
- assets:/usr/share/nginx/html/assets
labels:
- traefik.enable=true
- traefik.http.services.frontend.loadbalancer.server.port=80
@ -103,7 +105,9 @@ services:
depends_on:
- backend
# ERPNext requires local assets access (Frappe does not)
volumes:
sites:
assets:
db:
redis:

View File

@ -1,13 +1,9 @@
services:
backend:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
volumes:
- assets:/home/frappe/frappe-bench/sites/assets
frontend:
image: frappe/erpnext-nginx:${ERPNEXT_VERSION}
volumes:
- assets:/usr/share/nginx/html/assets
queue-short:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
@ -20,7 +16,3 @@ services:
scheduler:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
# ERPNext requires local assets access (Frappe does not)
volumes:
assets: