Skip to content
Snippets Groups Projects
David Beniamine's avatar
David Beniamine authored
c04df2c5
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