Implement a minimal, dependency-free publishing tool to manage news and articles. The app includes: - A Markdown-based block editor with rich-text capabilities. - Image upload and resizing using GD. - Support for drafts, scheduled publishing, and a trash system. - Integrated Basic Auth protection via PHP and .htpasswd. - A global plugin for automatic execution of scheduled posts. The tool reuses core site logic in custom/plugins/publiser-lib.php to ensure consistency between the editor and the live site.
13 lines
411 B
YAML
13 lines
411 B
YAML
services:
|
|
custom:
|
|
build: .
|
|
container_name: stopplidelsen.no
|
|
working_dir: /var/www/html/
|
|
volumes:
|
|
- ./app:/var/www/app:z
|
|
- ./content:/var/www/html:z
|
|
- ./custom:/var/www/custom:z
|
|
ports:
|
|
- "4040:80"
|
|
command: >
|
|
bash -c "chown -R www-data:www-data /var/www/custom/data /var/www/custom/assets /var/www/html/nyheter /var/www/html/artikler && apache2-foreground"
|