Add scripts for a single-command Danbooru deployment.

Add a Docker Compose file that launches a minimal Danbooru instance in a
Docker container with a single command. This is suitable as a quick demo
or for personal use, not for public-facing sites.

To use it, just run `bin/danbooru`. This is a wrapper script that
installs Docker Compose then uses it to start Danbooru.

This will generate a lot of debug output and take several minutes while
it builds the Docker containers. Be patient. When it's done, you should
have an empty booru accessible at http://localhost.
This commit is contained in:
evazion
2021-03-23 20:11:19 -05:00
parent 9c07d710f4
commit 08270973f1
3 changed files with 114 additions and 0 deletions

View File

@@ -1,5 +1,25 @@
[![codecov](https://codecov.io/gh/danbooru/danbooru/branch/master/graph/badge.svg)](https://codecov.io/gh/danbooru/danbooru) [![Discord](https://img.shields.io/discord/310432830138089472?label=Discord)](https://discord.gg/eSVKkUF)
## Quickstart
Clone this repository and run `bin/danbooru` to start a basic Danbooru instance:
```sh
git clone https://github.com/danbooru/danbooru
cd danbooru
./bin/danbooru
```
This will install [Docker Compose](https://docs.docker.com/compose/) and use it
to start Danbooru. This will take several minutes and produce lots of output.
When it's done, Danbooru will be running at http://localhost.
Alternatively, if you already have Docker Compose installed, you can just do:
```sh
docker-compose -f config/docker/docker-compose.simple.yaml up
```
## Installation
It is recommended that you install Danbooru on a Debian-based system