mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 13:55:08 +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:
|
||||
configurator:
|
||||
condition: service_completed_successfully
|
||||
update-assets:
|
||||
condition: service_completed_successfully
|
||||
|
||||
x-backend-defaults: &backend_defaults
|
||||
<<: [*depends_on_configurator, *customizable_image]
|
||||
|
|
@ -17,6 +19,13 @@ x-backend-defaults: &backend_defaults
|
|||
- sites:/home/frappe/frappe-bench/sites
|
||||
|
||||
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:
|
||||
<<: *backend_defaults
|
||||
platform: linux/amd64
|
||||
|
|
|
|||
Loading…
Reference in a new issue