offspot / container-images

OCI images for use in Kiwix Offspot
GNU General Public License v3.0
0 stars 1 forks source link

Edupi database file permission issue #24

Closed benoit74 closed 11 months ago

benoit74 commented 1 year ago

At Edupi container startup, database file is owned by root:root, while django app is ran by user www-data which hence has only read-only access.

Changing database permission with chown www-data:www-data /data/database/db.sqlite3solves the issue, but I'm not sure this is the best way to go.

benoit74 commented 1 year ago

Nota: read-only access prevent accessing the django or app admin dashboards.