If you are on Windows Docker Compose is already included, you do not need to install it yourself. If you are on Linux/MacOS you can probably use your package manager.
git clone https://github.com/e621ng/e621ng.git.cd into the repo.cp .env.sample .env.git config core.fileMode false
cp -ru hooks/ .git
This will resolve permission issues, and set up a hook that will reset file permissions to what they are supposed to be in the future.docker compose run --rm e621 /app/bin/setup
docker compose up
After running the commands once only docker compose up is needed to bring up the containers.http://localhost:3000 into the address bar and see if the website loads correctly. An admin account has been created automatically, the username and password are admin and hexerade respectively.docker exec -it e621ng-e621-1 /app/bin/populate
The command can be run multiple times to generate more content.db/exports/ and import from them:
docker exec -it e621ng-e621-1 /app/bin/populate exports:load tags wiki artists burs
docker exec -it e621ng-e621-1 /app/bin/populate posts COUNT=10000
db/populate/README.md lists every task and option, including how to get real images instead of placeholders.Note: When gems or js packages are updated you need to execute docker compose build to reflect them in the container.
You may want to test changes made to the DText gem on a local instance. You are recommended to reconsider and rethink your life choices.
If you are sure that you want to do this, follow these steps.
vendor directory. Example: ~/e621ng/vendor/dtext/.
cd ~/e621ngmkdir vendor && cd vendorgit clone https://github.com/e621ng/dtext.git (substitute your local fork as needed)cd ~/e621ngdocker compose build --no-cachegit checkout HEAD -- Gemfile.lockLOCAL_DTEXT=true in the .env file.At this point, the DText repository is set up. It will be automatically compiled whenever the docker container is started.
It is recommended to set LOCAL_DTEXT to false whenever you are not actively working on anything related to the DText repo, and then rebuild the container.
This repo provides a Dev Container configuration. You can use something like the Dev Container extension for VSCode to make use of it. Simply install it, open the folder in VSCode, and click the button in the bottom right to open the folder in the Dev Container.
Try this:
docker compose down -v to remove all volumes.docker compose build --no-cache to rebuild the image from scratch.You're most likely using Windows. Give this a shot, it tells Git to stop tracking file mode changes:
git config core.fileMode false
If you decide to deploy this docker image to an external / local server, you do need to remember to change the DANBOORU_HOST variable in the docker-compose.yml file to the IP of your server. Otherwise, you will not be able to access it, or the image links will be broken.
Specifically for TrueNAS/NAS boxes users: you need to use the shell itself to set the repo up, you can then manage the images/variable/config with Portainer/Dockge after it's set up.
The test suite runs in parallel using parallel_tests. Before running tests for the first time (or after a schema change), set up the
good first issue 또는 help wanted 이슈가 없습니다.
No CONTRIBUTING document was found. Please check the README and open issues.