From ecbded62ebcdb6799b0c2a02974ec47499991700 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Sun, 13 Feb 2022 18:31:50 +0100
Subject: [PATCH] Stack first draft

---
 .docker-compose.yml.swp | Bin 12288 -> 12288 bytes
 Readme.md               |  38 ++++++++++++++++++++++++++++++++++++++
 docker-compose.yml      |   1 -
 3 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 Readme.md

diff --git a/.docker-compose.yml.swp b/.docker-compose.yml.swp
index b02ac0fb4ebf060407024b94c7dfe8b0437eaf8c..f03b28afd2ad0e27a343fba373f165192523a335 100644
GIT binary patch
delta 72
zcmZojXh;xCG6?hZRj|-AVqjok5MW?fZo-+wueed{7e6ECW<i0^{JgCE3=FRP5LwR2
Yf(rUfV*HyG1+MZ<ex_$K*;{`r064A?PXGV_

delta 72
zcmZojXh;xCG6?hZRj|-AVqjok5MW@4H|9+Gqp(rz7e6D{W<i0^{JfX>7#PI)A+lVP
Y1r_v}p7Cu~6j;JHSzO;_vXuTa0B<1?V*mgE

diff --git a/Readme.md b/Readme.md
new file mode 100644
index 0000000..0af94e5
--- /dev/null
+++ b/Readme.md
@@ -0,0 +1,38 @@
+# 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
+
+### 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 :
+
+```yaml
+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"
+```
+
+3. Update `.env` to add `:custom.yml` in the `COMPOSE_FILE` variable
+4. Run `docker-compose down && docker-compose up`
+
+#### Config
+
+Copy `config/config.yml.template` to `config/config.yml` and adapt to your needs
diff --git a/docker-compose.yml b/docker-compose.yml
index 18b86fe..2e32794 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -7,4 +7,3 @@ services:
       - "./assets:/var/www/html/assets"
       - "./content:/var/www/html/content"
       - "./config:/var/www/html/config"
-      - "./theme:/var/www/html/themes/custom"
-- 
GitLab