soruly / trace.moe

Anime Scene Search by Image
https://trace.moe
MIT License
4.49k stars 233 forks source link

Could you create a version for windows 10? #84

Closed My12123 closed 6 months ago

My12123 commented 1 year ago

Could you create a version for windows 10?

My12123 commented 1 year ago

invalid mount config for type "bind": field Source must not be empty 2022-12-27_21-17-22

soruly commented 1 year ago

It seems that you have not created the .env file. Have you been following the guide in README?

My12123 commented 1 year ago

Yes, I was following. 2022-12-28_10-11-04

My12123 commented 1 year ago

I failed to execute the command sudo chown 8983:8983 /home/soruly/mycores

My12123 commented 1 year ago

2022-12-28_11-11-53

My12123 commented 1 year ago

Can you make a video installation guide for windows 10? @soruly

soruly commented 1 year ago

I'll create a guide for linux when I've time. But windows 10 isn't something I'd like to support. I'm not interested in running docker with WSL2

Vankerkom commented 8 months ago

The application works out of the box using docker-compose. I have managed to get it working on Windows 11 by sligtly altering the .env file by changing the storage directories.

Steps to get it running:

  1. Create a folder called tracemoe.

  2. Paste the docker-compose.yaml file into the tracemoe folder.

  3. Create the following folders inside tracemoe:

    • mycores
    • mysql
    • trace.moe-hash
    • trace.moe-incoming
    • trace.moe-media
  4. Create the following .env file:

WWW_PORT=3310
API_PORT=3311
MEDIA_PORT=3312
ADMINER_PORT=3313
SOLR_PORT=8983

NEXT_PUBLIC_API_ENDPOINT=http://localhost:3311    # Make sure to use localhost on your local machine.
NEXT_PUBLIC_MEDIA_ENDPOINT=http://localhost:3312  # Make sure to use localhost on your local machine.

WATCH_DIR=trace.moe-incoming/ # These directories point to relative directories to the docker-compose.yaml file
MEDIA_DIR=trace.moe-media/
HASH_DIR=trace.moe-hash/
SOLR_DIR=mycores
MYSQL_DIR=mysql

TRACE_MEDIA_SALT=CHANGEME_MEDIA_SALT
TRACE_API_SALT=CHANGEME_API_SALT
TRACE_API_SECRET=CHANGEME_API_SECRET
MARIADB_ROOT_PASSWORD=CHANGEME_MARIADB_ROOT_PASSWORD
  1. Start the docker compose file: docker-compose up -d
  2. Now you can continue following the instructions for importing files.
soruly commented 6 months ago

I'll create a guide for linux when I've time. But windows 10 isn't something I'd like to support. I'm not interested in running docker with WSL2

WSL2 is now supported.