Skip to content

This repository contains a set of docker files to quickly get started developing Wagtail sites in docker

License

Notifications You must be signed in to change notification settings

saevarom/wagtail-start-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dockerize-wagtail

A template repository to start a new wagtail site.

Setup

Requirements: Docker and Docker Compose (Docker Compose is included with Docker Desktop for Mac and Windows).

  1. On the repository front page, click the "Use this template" button and proceed with naming your repository and change other settings if you want. See screenshot:

Screenshot 2022-06-16 at 14 10 41

  1. Clone your repository and change to the directory in your terminal

  2. Run docker-compose up

  3. This project is configured so that the container is built with everything necessary to build a new Wagtail site. On the first run, you will have a running container with no entry point. This is so that you can open a shell in your container and start your project. To open a shell, run docker-compose exec web bash.

  4. In your container shell, start your wagtail project: wagtail start mysite /code.

  5. In your container shell, run migrations: python manage.py migrate.

  6. Stop your container, change docker-compose.yml so that the line tail -F anything is removed or commented out, and add in the line containing python manage.py ...:

-    command: tail -F anything 
+    command: python manage.py runserver 0.0.0.0:${DOCKER_DJANGO_PORT:-8000}
  1. Start your container again docker-compose up

  2. Visit your app in your browser: http://localhost:8000/

  3. Start developing your new Wagtail site on Docker!

About

This repository contains a set of docker files to quickly get started developing Wagtail sites in docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published