Skip to content

Astro-Lee/stdweb-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STDWeb

STDWeb - web version of STDPipe (Docker)

Step 0

  • git clone https://github.com/Astro-Lee/stdweb-docker.git
  • Download suitable index files from data.astrometry.net, as introduced in astrometry (also refer to build.sh). Map the saved path to the container by referring to docker-compose.yaml.
  • docker compose up -d
  • docker exec -it stdweb bash

⚠️: All the following operations are carried out in the container

Step 1

create a superuser

python manage.py createsuperuser

Step 2

generate a django secret key

key=$(python -c "from django.core.management import utils; print(utils.get_random_secret_key())") && sed -i "s/^SECRET_KEY.*/SECRET_KEY = '$key'/" .env && cat .env 

Step 3

reverse proxy

#edit stdweb/settings.py
CSRF_TRUSTED_ORIGINS = [ 'https://example.domain.com', ]

update

cd /opt/stdpipe && git pull && python -m pip install -e .
cd /opt/stdweb && git pull && pip install -r requirements.txt \
&& sed -i "/ALLOWED_HOSTS/a\# CSRF_TRUSTED_ORIGINS = [ 'https://example.domain.com', ]" stdweb/settings.py \
&& sed -i "s@redis:\/\/localhost\/@redis:\/\/redis\/@g" stdweb/settings.py \
&& sed -i "s@redis:\/\/127.0.0.1@redis:\/\/redis@g" stdweb/settings.py

jupyter-lab

nohup jupyter-lab --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser --allow-root &

About

STDPipe - web version (Docker)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 82.5%
  • Shell 17.5%