Skip to content

grandgeorg/boltcms-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker for Bolt CMS - Headless version

This is a Docker image for Bolt CMS.

Setup

  1. Clone this repository and cd into it.
  2. Extract boltcms.tar.gz into docker/boltcms/ directory:
tar -xvzf docker/boltcms.tar.gz -C docker/boltcms/
  1. Rename docker/.env.example to docker/.env and set the environment variables.
  2. Edit docker/boltcms/.env and set the environment variables for APP_SECRET and DATABASE_URL.
  3. Change into the docker directory and run docker compose build to build the docker image.
  4. Run docker compose up -d to start the containers.
  5. Get the container name of the boltcms-app container by running docker compose ps.
  6. Enter the boltcms-app container by running the following command:
docker exec -it <CONTAINER-NAME> bash
  1. Run the following command in the container to setup Bolt CMS:
bin/console bolt:setup

Follow the instructions.

  1. Set file system permissions. Make sure the Apache i.e. www-data user has write permissions to bolt directories with e.g.:
chown -R www-data:www-data /var/www/html/var
chown -R www-data:www-data /var/www/html/config
chown -R www-data:www-data /var/www/html/public/files
chown -R www-data:www-data /var/www/html/public/theme
chown -R www-data:www-data /var/www/html/public/thumbs
  1. Visit http://<YOUR_IP>:<BOLTCMS_PORT>/bolt in your browser and login with the credentials you set in step 9.
  2. You may want to proxy the boltcms-app and PHP-MyAdmin containers with a web server like Nginx or Apache. For Apache e.g.:
ProxyPass /phpmyadmin/  http://localhost:8080/
ProxyPassReverse /phpmyadmin/ http://localhost:8080/

ProxyPass /  http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
  1. Update Bolt CMS with composer by running the following command in the boltcms-app container:
composer update

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Docker for Bolt CMS - Headless version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published