Clone this repository and run bin/danbooru to start a basic Danbooru instance:
git clone https://github.com/danbooru/danbooru
cd danbooru
./bin/danbooru
This will install Docker 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:
docker-compose -f config/docker/docker-compose.simple.yaml up
Follow the INSTALL.debian script to install Danbooru.
The INSTALL.debian script is written for Debian, but can be adapted for other distributions. Danbooru has been successfully installed on Debian, Ubuntu, Fedora, Arch, and OS X. It is recommended that you use an Ubuntu-based system since Ubuntu is what is used in development and production.
See here for a guide on how set up Danbooru inside a virtual machine.
For best performance, you will need at least 256MB of RAM for PostgreSQL and Rails. The memory requirement will grow as your database gets bigger.
In production, Danbooru uses PostgreSQL 10.18, but any release later than this should work.
If your setup is not working, here are the steps I usually recommend to people:
Test the database. Make sure you can connect to it using psql. Make
sure the tables exist. If this fails, you need to work on correctly
installing PostgreSQL, importing the initial schema, and running the
migrations.
Test the Rails database connection by using bin/rails console. Run
Post.count to make sure Rails can connect to the database. If this
fails, you need to make sure your Danbooru configuration files are
correct.
Test Nginx to make sure it's working correctly. You may need to debug your Nginx configuration file.
Check all log files.
Danboou depends on a couple of cloud services and several microservices to implement certain features.
The following features require an Amazon AWS account:
The following features require a Google Cloud account:
IQDB integration is delegated to the IQDB service.
In order to access pool and post histories you will need to install and configure the Archives service.
The following features are delegated to the Reportbooru service:
Post recommendations require the Recommender service.
Content type
Image
Digest
sha256:dee223c8b…
Size
251.6 MB
Last updated
2 days ago
docker pull evazion/danbooru