X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/b33335fdd70b6d414a7d609e2f62a499b50c872f..fd1347eaf268604e0999a7cfa4b8e3b127a25244:/docker/README.md?ds=sidebyside diff --git a/docker/README.md b/docker/README.md index 0ee1a96..d170d70 100644 --- a/docker/README.md +++ b/docker/README.md @@ -20,6 +20,47 @@ cd Jirafeau docker build -t your/jirafeau:latest . ``` +## Docker Compose + +You can use the `docker-compose.yaml` from [here](../docker-compose.yaml) + +### Run Container + +```sh +docker compose up -d +``` + +### Custom Theme + +1. copy the theme data from the running container + + ```sh + docker compose cp web:/www/media jirafeau_media + ``` + +2. mount the theme data + + ```yaml + #.... + volumes: + - ./jirafeau_media/your_theme:/www/media/your_theme + ``` + +3. set the environment variable + + ```yaml + # .... + environment: + STYLE: 'your_theme' + DARK_STYLE: 'your_theme' + ``` + +4. run the compose file + + ```sh + docker compose up -d + ``` + ## Security You may be interested in running Jirafeau on port 80: @@ -36,6 +77,7 @@ Jirafeau's docker image accepts some options through environment variables to ea More details about options in `lib/config.original.php`. Available options: + - `ADMIN_PASSWORD`: setup a specific admin password. If not set, a random password will be generated. - `ADMIN_IP`: set one or more ip allowed to access admin interface (separated by comma). - `LANG`: choose the language for jirafeau (default auto).