mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 15:55:09 +00:00
fix(compose): add update-assets service
This commit is contained in:
parent
91bde56e7b
commit
551343e65b
1 changed files with 9 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ x-depends-on-configurator: &depends_on_configurator
|
||||||
depends_on:
|
depends_on:
|
||||||
configurator:
|
configurator:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
|
update-assets:
|
||||||
|
condition: service_completed_successfully
|
||||||
|
|
||||||
x-backend-defaults: &backend_defaults
|
x-backend-defaults: &backend_defaults
|
||||||
<<: [*depends_on_configurator, *customizable_image]
|
<<: [*depends_on_configurator, *customizable_image]
|
||||||
|
|
@ -17,6 +19,13 @@ x-backend-defaults: &backend_defaults
|
||||||
- sites:/home/frappe/frappe-bench/sites
|
- sites:/home/frappe/frappe-bench/sites
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
update-assets:
|
||||||
|
<<: *customizable_image
|
||||||
|
command: >
|
||||||
|
bash -c "rm -rf /mnt/sites/assets/ && cp -r /home/frappe/frappe-bench/sites/assets /mnt/sites/"
|
||||||
|
volumes:
|
||||||
|
- sites:/mnt/sites # mounted at a different path!
|
||||||
|
restart: on-failure
|
||||||
configurator:
|
configurator:
|
||||||
<<: *backend_defaults
|
<<: *backend_defaults
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue