Skip to content
Snippets Groups Projects
Select Git revision
  • a850c09bcb0a56dfe248b5d42508d4c7c9a7a21e
  • main default protected
  • pico-base
3 results

pico-cms

David Beniamine's avatar
David Beniamine authored
a850c09b
History

PICO CMS docker

Install

  1. clone this repository
  2. Copy .env.sample to .env and adapt to your needs
  3. docker-compose up

Usage

  1. Put your contents in content directory
  2. Put images etc in assets directory

Cache

By default an HTML cache is enable with a lifetime of 7 days.

This cache is automatically clear upon file change or docker restart.

If the autoclear does not work, you can manually empty the cache by running ./pico cache.

You can change this behavior in the config file.

Customization

Plugins / themes

To add plugins and / or themes :

  1. Paste your themes / plugins in the themes / plugins directory
  2. create a custom.yml file like the following :
version: "3"

services:
  pico:
    volumes:
      - "./themes/tetras:/var/www/html/themes/tetras"
      - "./plugins/Pico-RSS-Plugin/pico_rss:/var/www/html/themes/plugins/pico_rss"
  1. Update .env to add :custom.yml in the COMPOSE_FILE variable
  2. Run docker-compose down && docker-compose up

Config

Copy config/config.yml.template to config/config.yml and adapt to your needs