Giter Club home page Giter Club logo

lychee-docker's Introduction

Docker-compose for Lychee

Latest PHP, MariaDB LTS and Nginx mainline, Easy setup with docker-compose.

Can be used behind reverse proxy to use SSL. in this case SECURITY_HEADER_HSTS_ENABLE should be set to true in Lychee env settings

Setup

  1. git clone https://github.com/EntropyRy/Lychee-Docker // clone this repo
  2. cd Lychee-Docker // go in the dir
  3. git clone https://github.com/LycheeOrg/Lychee.git // clone the actual sofware
  4. cp .env.example .env and change settings
  5. Change settings in docker/fpm/php.ini // Not sure if you even needed to change anything
  6. cp Lychee/.env.example Lychee/.env and change settings same as in .env // These are your actual Lychee settings
    1. DB_CONNECTION is mysql, DB_HOST is db and port 3306
    2. You can change CACHE_DRIVER and SESSION_DRIVER as apc
    3. Change anything you need/like.
  7. run docker compose build; docker compose up -d // build and start the docker containers
  8. visit http://localhost // to see if everything is working
  9. run docker compose exec fpm php -d memory_limit=-1 /usr/bin/composer.phar install --no-dev --prefer-dist // to install depencies
  10. finalize the setup in http://localhost

DB backup and import

backup

  1. cp .env docker/
  2. ./docker/db-backup.sh

import

  1. gzip -d /docker/backup/file.sql.gz
  2. ./docker/db-import.sh /docker/backup/file.sql
  3. docker-compose restart db

Running artisan

  1. docker-compose exec fpm ./artisan

Upgrade

run ./update.sh

lychee-docker's People

Contributors

haivala avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.