项目作者: pierobot

项目描述 :
Run mangapie through docker.
高级语言: Dockerfile
项目地址: git://github.com/pierobot/mangapie-docker.git
创建时间: 2017-09-17T21:08:44Z
项目社区:https://github.com/pierobot/mangapie-docker

开源协议:BSD 3-Clause "New" or "Revised" License

下载


mangapie-docker

Run mangapie in docker with compose.

Setup

docker-compose

Install docker compose through pip, pip3, or the alternative methods.

  1. pip3 install docker-compose

Manga

Add directories to the manga directory.
Note: Unfortunately, docker does not allow you to use symbolic links inside volumes.

Certificates

Create the required TLS certificates.
Note: The command below will generate a self-signed certificate but no certificate authority.

  1. openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx/certs/mangapie.key -out nginx/certs/mangapie.crt

Build Containers

Build and start the containers. This will take a while the first time.

  1. docker-compose build
  2. docker-compose up

Note: The supervisor container will have its workers exit the very first run. It is safe to ignore.

Install mangapie and restart the containers.

  1. docker exec -it mangapie.php7-fpm mangapie install
  2. docker-compose down
  3. docker-compose up

If you ever need to update the actual mangapie code, use the following:

  1. docker exec -it mangapie.php7-fpm mangapie update

Finally, load up the site in your browser, sign in using “dev”, for the username, and “dev” for the password.

Things to consider

  • These containers use 3390 for the user and group IDs. If you will be adding directories and files from other containers, they must have the appropriate permissions.
    • If those containers allow you to set a UID and GUID then consider doing so.
  • Symbolic links to the host will not work inside containers.