-
Notifications
You must be signed in to change notification settings - Fork 41
Docker
Aaron W Morris edited this page Jun 19, 2023
·
45 revisions
- x86_64
- arm64
- Apple Silicon (Mac M1+)
Use the setup_env.sh
script to setup your .env environment file and ssl certificates
./setup_env.sh
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
docker compose build
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
docker compose down
The docker compose setup sets up a single container per process.
- 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
- nginx
- 8080:80
- 8443:443
- indiserver
- 17624:7624
- gunicorn
- 8000:8000 (commented out)
- mariadb
- 13306:3306 (commented out)
- mosqutto
- 18883:8883
- 18081:8081
- images_indi_allsky
- migrations_indi_allsky (flask)
- database_indi_allsky (MariaDB)
- mosquitto_indi_allsky (Mosquitto)
-
Navigate to the current git clone
cd indi-allsky
-
Pull the latest changes via git
git pull origin main
-
Rebuild containers
-
capture.indi.allsky
-
gunicorn.indi.allsky
-
nginx.indi.allsky
docker compose build capture.indi.allsky gunicorn.indi.allsky nginx.indi.allsky
-
docker compose up nginx.indi.allsky