fleischsalatinspace / pathfinder-docker

Easy to use docker-compose managed multi-container setup for running pathfinder
GNU General Public License v3.0
0 stars 1 forks source link

pathfinder-docker

No longer maintained. Please use https://github.com/goryn-clade/pathfinder-containers

Shellcheck

Easy to use docker-compose managed multi-container setup for running pathfinder

Forked from https://github.com/KryptedGaming/pathfinder-docker

  1. Features
  2. Requirements
  3. docker-compose modes
    1. Production
    2. Development
  4. Administration
  5. Install
    1. Production
    2. Development

Features

This repository contains files for running Pathfinder within a docker-compose managed multi-container setup. To enable non-tech savy people to use this repository, there are administration scripts for tasks like starting, stopping and backups included. Two docker-compose modes are available: production and develop. Check below for further information

Requirements

docker-compose modes

Production

Development

Administration

Install

Production

  1. Clone this repo and change directory
  2. Copy the example .env.sample file to .env.prod
  3. Copy the example config/Caddyfile.sample file to config/Caddyfile-prod
  4. Edit .env.prod and config/Caddyfile-prod and check your config with ./production.sh config
  5. If satisfied, start up your instance with ./production.sh up -d
  6. If youre getting the pathfinder setup page with letsencrypt staging TLS-certificate , everything is working
  7. Stop the cluster with ./production.sh stop and comment acme_ca in config/Caddyfile-prod to receive live letsencrypt TLS-certificate
  8. Start cluster with ./production.sh up -d

Development

  1. Clone this repo and change directory
  2. Copy the example .env.sample file to .env.dev
  3. Copy the example config/Caddyfile.sample file to config/Caddyfile-dev
  4. Edit .env.dev and config/Caddyfile-dev and check your config with ./develop.sh config
  5. Start your instance with ./develop.sh up -d
  6. Access your instance on https://pathfinder.lan:9000

Setup Pathfinder

  1. Navigate to your Pathfinder page, go through setup.
  2. Create the databases using the database controls in the setup page.
  3. Import static database.
  4. Import from ESI at the Cronjob section of the setup page.
  5. Build Systems data index under Build search index in the Administration section of the setup page.
  6. Restart your container with SETUP=False.
  7. You're live!

Importing static database

  1. wget https://github.com/exodus4d/pathfinder/raw/master/export/sql/eve_universe.sql.zip
  2. unzip eve_universe.sql.zip
  3. development
    docker cp eve_universe.sql "$(./develop.sh ps | grep db_dev | awk '{ print $1}'):/eve_universe.sql"
    ./develop.sh exec db sh -c 'exec mysql -uroot -p eve_universe < /eve_universe.sql'
    ./develop.sh exec db sh -c 'exec rm eve_universe.sql*'
  4. production
    docker cp eve_universe.sql "$(./production.sh ps | grep db_prod | awk '{ print $1}'):/eve_universe.sql"
    ./production.sh exec db sh -c 'exec mysql -uroot -p eve_universe < /eve_universe.sql'
    ./production.sh exec db sh -c 'exec rm eve_universe.sql*'
  5. Complete Setup.

Updating pathfinder

Feel free to contribute, there are many improvements (check TODO strings in this repository) that still need to be made.