-
Notifications
You must be signed in to change notification settings - Fork 3
Running Manga Tagger with Docker
version: "2.1"
services:
mangatagger:
image: banhcanh/manga-tagger
container_name: mangatagger
environment:
- PUID=1000
- PGID=1000
# timezone
- TZ=Europe/Paris
- UMASK=022 #optional
# USER SETTINGS
- MANGA_TAGGER_IMAGE_COVER=false
- MANGA_TAGGER_ADULT_RESULT=false
# Database Settings
- MANGA_TAGGER_DB_NAME=manga_tagger
- MANGA_TAGGER_DB_HOST_ADDRESS=mangatagger-db
- MANGA_TAGGER_DB_PORT=27017
- MANGA_TAGGER_DB_USERNAME=manga_tagger
- MANGA_TAGGER_DB_PASSWORD=Manga4LYFE
- MANGA_TAGGER_DB_AUTH_SOURCE=admin
- MANGA_TAGGER_DB_SELECTION_TIMEOUT=10000
volumes:
- /path/to/config:/config
- /path/to/library:/manga
- /path/to/downloads:/downloads
restart: unless-stopped
depends_on:
- mangatagger-db
# ports: # Optional, only useful for TCP and Json TCP logging
# - 1798:1798
# - 1799:1799
mangatagger-db: # you can use your own mongodb, edit the manga-tagger settings.json accordingly
image: mongo
container_name: mangatagger-db
volumes:
- /path/to/mangatagger/db:/data/db # db persistence
environment:
MONGO_INITDB_ROOT_USERNAME: manga_tagger
MONGO_INITDB_ROOT_PASSWORD: Manga4LYFE
MONGO_INITDB_DATABASE: manga_tagger
restart: unless-stopped
There's 4 volume paths that you must change
This setting has the following structure <Path/In/Host>
:
<Path/In/Container>
<Path/In/Host>
means the path in the system where docker is installed
<Path/In/Container>
Is a virtual path that will be created in the container. This should not be modified or Manga-Tagger won't work
Note: Mind the :
that separates both values.
These are what each volume is for. Change your values in your docker-compose.yml
file accordingly
-
/path/to/config
- Where the config of MangaTagger is stored -
/path/to/library
- The library where the files will be moved to -
/path/to/downloads
- The folder where the downloads arrive to. Manga-Tagger watches new files created and moved and process them -
/path/to/mangatagger/db
- The folder where the database will be stored
Should MangaTagger append the series cover to every chapter or the first chapter.
- Values:
true
|false
|first
Enable adult result. This setting may give wrong manga match.
Make sure the input manga title is as accurate as possible if enabling this or it may confuse Anilist's search.
- Values:
true
|false
Set to true to prevent Manga Tagger from certain processing
- Values:
true
|false
- Default:
false
Disable Manga Tagger from inserting records into the database while set to false
- Values:
true
|false
- Default:
false
Disable Manga Tagger from renaming files when set to false
- Values:
true
|false
- Default:
false
Disable Manga Tagger from writing the comicinfo.xml to files while set to false
- Values:
true
|false
- Default:
false
Define an amount of worker threads for Manga Tagger to spawn
- Default:
8
Define the maximum size the file queue should be for worker threads
- Default:
0
Manga-Tagger lets you use your own mongo-db settings. Leave the default values if you are not using an external db
Define the name of your database
- Default:
manga_tagger
(recommended)
Define the hostname/IP address of your database
- Default:
mangatagger-db
Define the port of your database
- Default:
27017
Define the username used to connect to your database
- Default:
manga_tagger
Define the password used to connect to your database
- Default:
Manga4LYFE
Define the authentication table used for your defined username
- Default:
admin
Define the server selection timeout (in milliseconds) which depends on your network connection and server configuration
- Default:
10000
The type of messages that should be logged
- Values:
info
|debug
- Default:
info
Set to true to enable console logging
- Values:
true
|false
- Default:
true
Set to true to enable file-based loggin
- Values:
true
|false
- Default:
true
Set to true to enable JSON logging to file (used for DataDog integration)
- Values:
true
|false
- Default:
false
Set to true to enable TCP logging
- Values:
true
|false
- Default:
false
Set to true to enable JSON TCP logging
- Values:
true
|false
- Default:
false