An example implementation of flaskbb-dockerfile in a docker-compose bundle https://github.com/haliphax/flaskbb-docker-compose-example

haliphax b202453f74 web container no longer needs CMD overridden 1 year ago
config 8d6ac0759f content 2 years ago
data 8d6ac0759f content 2 years ago
themes 8d6ac0759f content 2 years ago
LICENSE 586bd5dd68 Initial commit 2 years ago
README.md 55bbaad429 after => afterward 2 years ago
docker-compose.yml b202453f74 web container no longer needs CMD overridden 1 year ago

README.md

FlaskBB docker-compose example

This is an example docker-compose configuration for running FlaskBB and redis:alpine together. The haliphax/flaskbb:latest docker image is used for FlaskBB.

Your configuration should set all of the REDIS_* settings to redis://redis:6379 and the CACHE_REDIS_URL setting to REDIS_URL.

To spin up a new installation of FlaskBB:

docker run -ti --rm \
	-v $(pwd)/data:/app/data \
	-v $(pwd)/config:/app/config \
	haliphax/flaskbb:latest \
	/bin/ash -c "flaskbb --config=config/flaskbb.cfg install"

To upgrade the database (be sure to run docker-compose restart afterward if your instance is running!):

docker run -ti --rm \
	-v $(pwd)/data:/app/data \
	-v $(pwd)/config:/app/config \
	haliphax/flaskbb:latest \
	/bin/ash -c "flaskbb --config=config/flaskbb.cfg db upgrade"

Notes

  • If you don't want to run FlaskBB on port 80, modify the ports section of the docker-compose.yml file.
  • If you don't want to use a custom theme, delete the corresponding line in the volumes section of the docker-compose.yml file.