Coder Social home page Coder Social logo

docker-bolt's Introduction

The official Bolt Docker Image

This is also the image that powers the container Bolt demo sites on https://try.bolt.cm and https://market.bolt.cm.

It uses Apache, PHP-FPM and SQLite in a single service.

It should be used in production with a separate http proxy container, we'd recommend jwilder/nginx-proxy which will allow you to define a virtual host for each container.

Supported Tags

  • 3.6, latest
  • 3.5,
  • 3.4,
  • 3.3,
  • 3.2

Releases

This repo by default uses SQLite requesting the version number only will fetch this There is now experimental mysql support which you can specify by prefixing mysql- to the release tag.

As new versions are released we will tag a corresponding version for the image. You can always leave the tag empty or define latest which will have the same effect of installing the latest stable version.

Quick Start

All you need to do to get started is pull the image and then launch a container.

docker pull rossriley/docker-bolt

If you want to specify a specific tag then append that as below

docker pull rossriley/docker-bolt:3.3

Once the pull has completed then you can launch a container using the docker run command, there are a few additional environment variables that you can pass, the one shown below installs the default Bolt theme.

docker run -p 80 --name my_bolt_site -e BOLT_EXT='bolt/theme-2016 dev-master' -e BOLT_TITLE='My Bolt Site' -e BOLT_THEME='bolt/theme-2016' -d -t rossriley/docker-bolt

Using Docker-Compose

If you use docker-compose then all you need is a docker-compose.yml file that looks something like this:

version: '2'

services:
    bolt:
        image: rossriley/docker-bolt:3.6
        network_mode: bridge
        environment:
            - BOLT_EXT=bolt/theme-2018 dev-master
            - BOLT_TITLE=My Bolt Site
            - BOLT_THEME=bolt/theme-2018
        volumes:
            - ./db-data:/var/www/html/app/database
            - ./files:/var/www/html/public/files
            - ./extensions:/var/www/html/extensions

This config will get you the latest 3.6.x release, note the additional environment variables you can set to install and configure a theme, in this case the default Bolt theme.

A few volumes are also defined here which will allow you to persist the database, files and extensions to the host.

Please note that you may want to define additional persistent volumes here depending on what files you allow the admin users to edit.

docker-bolt's People

Contributors

rossriley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-bolt's Issues

How does one select own theme?

I'm unable to select my own theme:

file setup:

├── app
│   ├── cache
│   ├── config
│   │   ├── extensions
│   │   │   └── menu_backups
│   │   └── files
│   └── database
├── db-data
├── extensions
│   └── vendor
│       ├── bolt
│       │   ├── jsonapi
│       │   │   ├── config
│       │   │   └── src
│       │   │       ├── Action
│       │   │       ├── Config
│       │   │       ├── Controllers
│       │   │       ├── Converter
│       │   │       │   └── Parameter
│       │   │       │       └── Type
│       │   │       ├── Exception
│       │   │       ├── Helpers
│       │   │       ├── Parser
│       │   │       │   └── Field
│       │   │       │       └── Type
│       │   │       ├── Provider
│       │   │       ├── Response
│       │   │       └── Storage
│       │   │           └── Query
│       │   │               └── Handler
│       │   │                   └── Directive
│       │   └── theme-2016
│       │       ├── css
│       │       ├── images
│       │       ├── js
│       │       ├── partials
│       │       ├── screenshots
│       │       ├── source
│       │       │   ├── javascript
│       │       │   ├── scss
│       │       │   └── wireframes
│       │       └── wireframes
│       └── composer
└── public_html
    ├── bolt-public
    ├── extensions
    ├── files
    ├── theme
    │   └── base-theme-2
    │       ├── blocks
    │       ├── components
    │       │   └── menus
    │       ├── css
    │       │   ├── bootstrap
    │       │   │   ├── mixins
    │       │   │   └── utilities
    │       │   ├── components
    │       │   │   └── blocks
    │       │   ├── public
    │       │   └── utilities
    │       ├── font-awesome
    │       │   ├── css
    │       │   └── js
    │       ├── fonts
    │       │   ├── Belgrano
    │       │   ├── Mina
    │       │   └── Source_Sans_Pro
    │       ├── forms
    │       ├── fullcalendar-3.9.0
    │       │   ├── demos
    │       │   │   ├── js
    │       │   │   ├── json
    │       │   │   └── php
    │       │   ├── lib
    │       │   └── locale
    │       ├── js
    │       └── media
    │           └── favicon
    └── thumbs

Docker-compose.yml

version: '2'

services:
    bolt:
        image: rossriley/docker-bolt:3.4
        network_mode: bridge
        environment:
            - BOLT_TITLE=Indicium
            - BOLT_THEME=./public_html/theme/base-theme-2
        volumes:
            - ./db-data:/var/www/html/app/database
            - ./public_html:/var/www/html/public/files
            - ./extensions:/var/www/html/extensions
        ports:
          - 80:80

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.