Skip to content
Aaron W Morris edited this page Jun 19, 2023 · 45 revisions

Indi Allsky Docker support

docker compose v2

Platforms

  • x86_64
  • arm64
  • Apple Silicon (Mac M1+)

Setup

Use the setup_env.sh script to setup your .env environment file and ssl certificates

./setup_env.sh

Example .env

INDIALLSKY_INDI_CCD_DRIVER=indi_simulator_ccd
INDIALLSKY_INDI_GPS_DRIVER=

INDIALLSKY_TIMEZONE=America/New_York

INDIALLSKY_FLASK_AUTH_ALL_VIEWS=false
INDIALLSKY_FLASK_SECRET_KEY=0000000000000000000000000000000000000000000000000000000000000000
INDIALLSKY_FLASK_PASSWORD_KEY=00000000000000000000000000000000000000000000

INDIALLSKY_WEB_USER=username
INDIALLSKY_WEB_PASS=password
INDIALLSKY_WEB_NAME=First Last
[email protected]

INDIALLSKY_MOSQUITTO_USER=username
INDIALLSKY_MOSQUITTO_PASS=password

INDIALLSKY_WEB_GENERATE_APIKEY=false

INDI_ALLSKY_MARIADB_HOST=docker_mariadb_indi_allsky_1
INDI_ALLSKY_MARIADB_PORT=3306
INDI_ALLSKY_MARIADB_SSL=false

MARIADB_RANDOM_ROOT_PASSWORD=yes
MARIADB_DATABASE=indi_allsky
MARIADB_USER=indi_allsky_own
MARIADB_PASSWORD=randomlygeneratedpassword

Build containers

docker compose build

Run containers

docker compose up

or

docker compose up --detach

Notes

  • There are delays up to 120s for services to completely start
  • Your camera must be plugged in prior to starting the indiserver_indi_allsky container

Stop containers

docker compose down

Info

The docker compose setup sets up a single container per process.

Containers

  • indiserver.indi.allsky
    • privileged container
  • capture.indi.allsky
    • capture process
  • gunicorn.indi.allsky
    • python application server
    • Flask database migrations managed here
  • nginx.indi.allsky
    • reverse proxy
  • mariadb.indi.allsky
    • MariaDB database
  • mosquitto.indi.allsky
    • Mosquitto MQTT broker
  • indi.base
    • intermediate image
    • does not run
  • indi.allsky.base
    • intermediate image
    • does not run

Exposed Ports

  • nginx
    • 8080:80
    • 8443:443
  • indiserver
    • 17624:7624
  • gunicorn
    • 8000:8000 (commented out)
  • mariadb
    • 13306:3306 (commented out)
  • mosqutto
    • 18883:8883
    • 18081:8081

Volumes

  • images_indi_allsky
  • migrations_indi_allsky (flask)
  • database_indi_allsky (MariaDB)
  • mosquitto_indi_allsky (Mosquitto)

Updating indi-allsky

  1. Navigate to the current git clone

     cd indi-allsky
    
  2. Pull the latest changes via git

     git pull origin main
    
  3. Rebuild containers

    • capture.indi.allsky

    • gunicorn.indi.allsky

    • nginx.indi.allsky

         docker compose build capture.indi.allsky gunicorn.indi.allsky nginx.indi.allsky
      

Special scenarios

Start only web interface

    docker compose up nginx.indi.allsky
Clone this wiki locally