pip --no-build-isolation
would help or a pyproject.toml
file with oldest-supported-numpy
but no luck yet :(
- /tmp/photonix-cache:/data/cache
.
# Launch Python shell in the running Docker container docker exec -ti photonix python photonix/manage.py shell # Import Django models from photonix.accounts.models import User from photonix.photos.models import Library, LibraryUser, LibraryPath # Create a user user = User(username='YOUR_USERNAME') user.set_password('YOUR_PASSWORD') user.save() # Create a library library = Library(name='YOUR_NEW_LIBRARY_NAME', classification_color_enabled=True, classification_location_enabled=True, classification_style_enabled=True, classification_object_enabled=True, setup_stage_completed='Th') library.save() # Create a path attached to the library so files can be imported library_path = LibraryPath(library=library, type='St', backend_type='Lo', path='YOUR_PATH_INSIDE_DOCKER_CONTAINER', watch_for_changes=True) library_path.save() # Link the user created above to the library created above library_user = LibraryUser(library=library, user=user, owner=True) # owner=True only if this new library user is going to be in charge of managing it library_user.save() # Alternatively, if you want to be the owner in charge, set owner=False above and then also run this owner_user = User.objects.get(username='demo') library_user = LibraryUser(library=library, user=owner_user, owner=True) library_user.save()
Afternoon everyone! Bit stumped so I'm hoping you all can help me out. Just tried launching Photonix for the first time in my stack and while it appears everything is set up properly per the documentation, I cannot get logged in at all. Every time I try to authenticate with the credentials I set up through the python script, it just hands at Loading... and never goes anywhere. Logs just show the same thing over and over
today at 1:45:51 PM {GatewayIP} - - [23/Jun/2021:17:45:51 +0000] "POST /graphql HTTP/1.1" 400 154 "https://{domain}/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
photonix:
image: photonixapp/photonix:0.11.0
container_name: photonix
restart: unless-stopped
depends_on:
- traefik
- redis_photonix
- postgres
security_opt:
- no-new-privileges:true
networks:
xinstitute:
socket_proxy:
environment:
- ENV=prd
- POSTGRES_HOST=postgres
- POSTGRES_USER=photonix
- POSTGRES_PASSWORD={redacted}
- REDIS_HOST=redis_photonix
- ALLOWED_HOSTS='*'
volumes:
- $DOCKERDIR/photonix/photos:/data/photos
- $DOCKERDIR/photonix/raw-photos-processed:/data/raw-photos-processed
- $DOCKERDIR/photonix/cache:/data/cache
- $DOCKERDIR/photonix/models:/data/models
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.photonix-rtr.entrypoints=https"
- "traefik.http.routers.photonix-rtr.rule=Host(`mysphotonix.$DOMAINNAME`)"
## Middlewares
- "traefik.http.routers.photonix-rtr.middlewares=chain-no-auth@file"
## HTTP Services
- "traefik.http.routers.photonix-rtr.service=photonix-svc"
- "traefik.http.services.photonix-svc.loadbalancer.server.port=80"
Operations to perform:
Apply all migrations: accounts, admin, auth, contenttypes, photos, refresh_token, sessions
Running migrations:
No migrations to apply.