Sign inSign up

roadiz/saas-edition

By roadiz

•Updated over 3 years ago

Generic docker image for standalone Saas Roadiz v2+ edition

Image
0

235

roadiz/saas-edition repository overview

⁠roadiz/saas-edition

Generic docker image sources for Saas Roadiz v2+ edition.

⁠Install

Use docker-compose.prod.yml and .env files as templates for your deployment.

⁠Generate JWT private and public keys
# Generate a strong secret
openssl rand --base64 32; 
# Use JWT_PASSPHRASE secret
openssl genpkey -out ./private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096;
openssl pkey -in ./private.pem -out ./public.pem -pubout;
⁠Initialize docker-compose environment
docker-compose pull
docker-compose up -d --force-recreate

Then wait for your services to initialize, especially your database could take several seconds to initialize (filesystem, database and user creation).

When you're ready you can check that Symfony console responds through your Docker service:

docker-compose exec -u www-data app bin/console
⁠Generate Symfony secrets⁠

Make sure your defined a named volume for /var/www/html/config/secrets directory

docker-compose exec -u www-data app bin/console secrets:generate-keys

Then generate secrets values for your configuration variables such as APP_RECAPTCHA_PRIVATE_KEY or JWT_PASSPHRASE:

docker-compose exec -u www-data app bin/console secrets:set APP_RECAPTCHA_PRIVATE_KEY
docker-compose exec -u www-data app bin/console secrets:set JWT_PASSPHRASE
docker-compose exec -u www-data app bin/console secrets:set APP_SECRET

Make sure your remove any of these variables from your .env and .env.local files, it would override your secrets (empty values for example), and lose all benefits from encrypting your secrets.

⁠Install database
# Create Roadiz database schema
docker-compose exec -u www-data app bin/console doctrine:migrations:migrate
# Migrate any existing data types
docker-compose exec -u www-data app bin/console themes:migrate ./src/Resources/config.yml
# Install base Roadiz fixtures, roles and settings
docker-compose exec -u www-data app bin/console install
# Clear cache
docker-compose exec -u www-data app bin/console cache:clear
# Create your admin account
docker-compose exec -u www-data app bin/console users:create -m [email protected] -b -s username

Tag summary

Content type

Image

Digest

sha256:8ad00ac3d…

Size

318.4 MB

Last updated

over 3 years ago

docker pull roadiz/saas-edition:develop