Skip to content
/ mangadocker Public template

MangAdventure docker-compose setup

License

Notifications You must be signed in to change notification settings

mangadventure/mangadocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MangAdventure Docker

This repository contains a complete setup of MangAdventure using docker-compose.

Components

All images use Alpine Linux.

Installation

First, you will need to clone this repository:

git clone https://github.com/mangadventure/mangadocker
cd mangadocker

Then, use this command to create the required directories:

mkdir -p media static .well-known nginx/{certs,logs}

SSL certificates in nginx/certs will be available under /etc/letsencrypt inside the container.

You can also add relevant files to .well-known. Here's an example security.txt file:

Contact: mailto:[email protected]
Canonical: https://yoursite.com/.well-known/security.txt
Policy: https://github.com/mangadventure/MangAdventure/security/policy

The file status_auth.txt is required in order to set up /__status__.
You can create it with the following command:

printf > status_auth.txt '%s:%s\n' \
   "$(read -rp 'Username: '; printf "$REPLY")" \
   "$(openssl passwd -noverify)"

It will ask you to specify the credentials which you can then use to view the site status.


Next, edit the following files as needed:

  • env/database.env
  • env/mangadventure.env
  • nginx/sites/mangadventure.nginx

Some settings are empty and must be set.


Now, you can start the containers:

docker compose up

Once the site has been set up, static files will be copied to static.
You can write your own styles in static/styles/extra.scss and compile it:

docker compose exec mangadventure mangadventure collectstatic --noinput

About

MangAdventure docker-compose setup

Topics

Resources

License

Stars

Watchers

Forks