# Install Psono Docker # Installation with Docker # If you have docker running, then the database is just one command away: First create the folder for your data e.g.: sudo mkdir -p /home/debian/docker/psono/postgres # Generate keys # Execute the command below to generate your cryptographic keys which you need in the next step. docker run --rm -ti psono/psono-combo:latest python3 ./psono/manage.py generateserverkeys # Send a test email docker run --rm \ -v /home/debian/docker/psono/settings.yaml:/root/.psono_server/settings.yaml \ -ti psono/psono-combo-enterprise:latest python3 ./psono/manage.py sendtestmail rgmcewan@outlook.com # Start the database container docker run --name psono-database \ -v /home/debian/docker/psono/postgres:/var/lib/postgresql/data \ -e POSTGRES_USER=psono \ -e POSTGRES_PASSWORD=Cj2BPQLsBCI3 \ -d --restart=unless-stopped \ -p 5432:5432 postgres:13-alpine # Prepare the database docker run --rm \ -v /home/debian/docker/psono/settings.yaml:/root/.psono_server/settings.yaml \ -ti psono/psono-combo-enterprise:latest python3 ./psono/manage.py migrate # Start the Psono Server and expose port 10200 docker run --name psono-server \ --sysctl net.core.somaxconn=65535 \ -v /home/debian/docker/psono/settings.yaml:/root/.psono_server/settings.yaml \ -v /home/debian/docker/psono/config.json:/usr/share/nginx/html/config.json \ -v /home/debian/docker/psono/config.json:/usr/share/nginx/html/portal/config.json \ -v /home/debian/docker/psono/log:/var/log/psono \ -d --restart=unless-stopped -p 10200:80 psono/psono-combo-enterprise:latest # Manually verify first user # First step run this docker run --rm \ -v /home/debian/docker/psono/settings.yaml:/root/.psono_server/settings.yaml \ -ti psono/psono-combo-enterprise:latest python3 ./psono/manage.py python3 verifyuseremail rgmcewan@outlook.com # Promose first user to admin using cli docker run --rm \ -v /home/debian/docker/psono/settings.yaml:/root/.psono_server/settings.yaml \ -ti psono/psono-combo:latest python3 ./psono/manage.py promoteuser rgmcewan@outlook.com superuser EMAIL_FROM: 'noreply@rmdigital.io' EMAIL_HOST: 'mail.rmdigital.io' EMAIL_HOST_USER: 'noreply@rmdigital.io' EMAIL_HOST_PASSWORD : 'Cj2BPQLsBCI3' EMAIL_PORT: 587 EMAIL_SUBJECT_PREFIX: '' EMAIL_USE_TLS: False # Docker run command docker run --name psono \ --sysctl net.core.somaxconn=65535 \ -v /home/debian/docker/psono/settings.yaml:/root/.psono_server/settings.yaml \ -v /home/debian/docker/psono/config.json:/usr/share/nginx/html/config.json \ -v /home/debian/docker/psono/config.json:/usr/share/nginx/html/portal/config.json \ -v /home/debian/docker/psono/log:/var/log/psono \ -d --restart=unless-stopped -p 10200:80 psono/psono-combo-enterprise:latest