STDWeb - web version of STDPipe (Docker)
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 todocker-compose.yaml
. docker compose up -d
docker exec -it stdweb bash
python manage.py createsuperuser
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
#edit stdweb/settings.py
CSRF_TRUSTED_ORIGINS = [ 'https://example.domain.com', ]
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
nohup jupyter-lab --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser --allow-root &