diff --git a/docker-compose.yml b/docker-compose.yml index 398c7093..5b050973 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -163,6 +163,15 @@ services: - sites-vol:/home/frappe/frappe-bench/sites:rw - logs-vol:/home/frappe/frappe-bench/logs:rw + fix-vol-permissions: + image: frappe/erpnext-worker:${ERPNEXT_VERSION} + user: root + command: chown -R 1000:1000 /sites /assets /logs + volumes: + - sites-vol:/sites + - assets-vol:/assets + - logs-vol:/logs + volumes: mariadb-vol: redis-cache-vol: diff --git a/tests/test-erpnext.sh b/tests/test-erpnext.sh index 839dfbeb..fc0eca48 100755 --- a/tests/test-erpnext.sh +++ b/tests/test-erpnext.sh @@ -38,5 +38,8 @@ docker restart ${project_name}_fix-vol-permissions_1 check_health $project_name +# TODO: remove when pr ci run successful +docker logs ${project_name}_erpnext-nginx_1 + ping_site rm .env