Install ThreeTwo! on unRAID with the docker-compose plugin
Notes#
This guide goes over ThreeTwo! installation on unRAID using the docker-compose manager plugin. Currently, this is the recommended approach for unRAID users.
With the help of this plugin, you are able to pull the entire ThreeTwo! docker-compose stack up, down with the click of a button. It abstracts away a lot of complexity of writing out commands in the console.
That said, the plugin is still in beta, so you may experience strange behavior.
Pre-requisites#
First things first, let's go over what the pre-requisites are:
The
docker-composeconfiguration for ThreeTwo! now resides in its own repo here: https://github.com/rishighan/threetwo-docker-compose You will be using this as a reference.A working
AirDC++install is necessary forDC++searching/downloading to work. You can install it through the unRAID via the CA store or via a dockercomicsanduserdatafolders.- The
comicsfolder must be the folderAirDC++downloads comics to. - Create the
userdatafolder under/mnt/user/appdata/threetwo
- The
To get ComicVine to work for metadata scraping and other functions, you must have a ComicVine API key. You can get one here. Metadata scraping will not work unless you supply an API key.
Open an unRAID terminal and create an
.envfile:nano /boot/config/plugins/compose.manager/projects/ThreeTwo/.env- Paste this into the file, replacing anything within
<>with actual values:
UNDERLYING_HOSTNAME=<UNRAID_HOSTNAME>COMICS_DIRECTORY=<PATH_TO_COMICS_DIRECTORY>USERDATA_DIRECTORY=/mnt/user/appdata/threetwo/userdata COMICVINE_API_KEY=<YOUR_COMICVINE_API_KEY> LOGGER=trueLOGLEVEL=infoSERVICEDIR=dist/services CHOKIDAR_USEPOLLING=true UNRAR_BIN_PATH=/usr/bin/unrarSEVENZ_BINARY_PATH=/usr/bin/7zaMONGO_URI=mongodb://db:27017/threetwoELASTICSEARCH_URI=http://elasticsearch:9200REDIS_URI=redis://redis:6379TRANSPORTER=redis://redis:6379CACHER=Memory
Installation#
Install the
docker-compose managerplugin from the unRAID CA store. After installation, you can find the plugin UI under theDockertab.Create a new stack, give it a name.
Hover over the gear next to it and click on
Edit Stack.Copy-paste this into the textarea:
version: "3.7" x-userdata-volume:&userdata-volumetype: bindsource: ${USERDATA_DIRECTORY}target: /userdata x-comics-volume:&comics-volumetype: bindsource: ${COMICS_DIRECTORY}target: /comics services:threetwo: build: context: https://github.com/rishighan/threetwo.git dockerfile: Dockerfile image: frishi/threetwo container_name: threetwo-ui env_file: /boot/config/plugins/compose.manager/projects/ThreeTwo/.env restart: unless-stopped ports: - "8050:8050" - "3050:3050" links: - core-services depends_on: - db - elasticsearch - redis networks: - proxy metadata-service: build: context: https://github.com/rishighan/threetwo-metadata-service.git image: frishi/threetwo-metadata-service container_name: metadata-service ports: - "3080:3080" environment: SERVICES: api,comicvine env_file: /boot/config/plugins/compose.manager/projects/ThreeTwo/.env depends_on: - redis volumes: - *comics-volume - *userdata-volume networks: - proxy core-services: build: context: https://github.com/rishighan/threetwo-core-service.git image: frishi/threetwo-core-service container_name: core-services ports: - "3000:3000" - "3001:3001" depends_on: - db - redis - elasticsearch environment: name: core-services SERVICES: api,library,importqueue,settings,search,socket,imagetransformation,opds env_file: /boot/config/plugins/compose.manager/projects/ThreeTwo/.env volumes: - *comics-volume - *userdata-volume networks: - proxy db: image: "bitnami/mongodb:latest" container_name: database networks: - proxy ports: - "27017:27017" volumes: - "mongodb_data:/bitnami/mongodb" redis: image: "bitnami/redis:latest" container_name: queue environment: ALLOW_EMPTY_PASSWORD: "yes" networks: - proxy ports: - "6379:6379" elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.16.2 container_name: elasticsearch environment: - "discovery.type=single-node" - "ES_JAVA_OPTS=-Xms512m -Xmx512m" - "xpack.security.enabled=true" - "xpack.security.authc.api_key.enabled=true" - "ELASTIC_PASSWORD=password" ulimits: memlock: soft: -1 hard: -1 ports: - 9200:9200 networks: - proxy networks:proxy: external: true volumes:mongodb_data: driver: localelasticsearch: driver: localClick
Save ChangesClick
Compose Upand observe for any errors.If all goes well, you should see the following containers appear as icons without images in the unRAID
Docker Containerspanel:threetwo-uicore-servicesmetadata-serviceelasticsearchdatabasequeue
You can look at the logs for these containers by clicking on their icons and then
Logs
Ports#
threetwo-ui, runs on port 8050threetwo-core-serviceon 3000threetwo-metadata-serviceon 3080