Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

torchbox/demo.wagtail.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo.wagtail.io

This repository contains configuration and data for the demo.wagtail.io site. This is an instance of torchbox.com which runs within a Docker container.

Reseting the database/media is achieved by putting them inside the Docker image so any changes made while the container is running will be reverted whenever the container is re created.

Building the image

After you've checked out the code locally, run the following commands to fetch the site code (which is linked with a git submodule):

git submodule init
git submodule update

Run the following command to build the image:

docker build -t demowagtail .

This will pull down the python:2.7 image (approx 700MB), execute the instructions in the Dockerfile on it and tag the new image as "demowagtail".

Running it

The image runs uwsgi on port 5000, which needs to be forwarded to a host port in order to be accessed externally.

You can run this image both interactively (for development) or as a daemon (for hosting)

For development:

docker run --rm -ti -p 8000:5000 demowagtail

For hosting:

docker run --name demowagtail -d -p 127.0.0.1:8000:5000

To reset the container back to its initial state, just recreate it:

In development, press Ctrl+C and rerun the above command

In hosting, run "docker rm -f demowagtail" and rerun the above command

Warning

Running PostgreSQL in the same container as the app and bundling media into the base image are both considered bad practise by the Docker community. Avoid copying this unless you know what you're doing!

About

Configuration for demo.wagtail.io

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages