Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saevarom/wagtail-start-docker
This repository contains a set of docker files to quickly get started developing Wagtail sites in docker
https://github.com/saevarom/wagtail-start-docker
Last synced: 2 months ago
JSON representation
This repository contains a set of docker files to quickly get started developing Wagtail sites in docker
- Host: GitHub
- URL: https://github.com/saevarom/wagtail-start-docker
- Owner: saevarom
- License: mit
- Created: 2022-06-16T11:27:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T20:51:36.000Z (about 1 year ago)
- Last Synced: 2024-08-02T07:17:04.146Z (5 months ago)
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wagtail - Wagtail Quickstart with docker - A template repository to get started quickly with the latest Wagtail in docker. (Tools / Templates & Starter Kits)
README
dockerize-wagtail
======================A template repository to start a new wagtail site.
Setup
-----**Requirements:** [Docker](https://www.docker.com/) and Docker Compose (Docker Compose is included with Docker Desktop for Mac and Windows).
1. On the repository [front page](https://www.github.com/saevarom/wagtail-start-docker), click the "Use this template" button and proceed with
naming your repository and change other settings if you want. See screenshot:2. Clone your repository and change to the directory in your terminal
3. Run `docker-compose up`
4. 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`.5. In your container shell, start your wagtail project: `wagtail start mysite /code`.
6. In your container shell, run migrations: `python manage.py migrate`.
7. 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 ...`:
```diff
- command: tail -F anything
+ command: python manage.py runserver 0.0.0.0:${DOCKER_DJANGO_PORT:-8000}
```8. Start your container again `docker-compose up`
9. Visit your app in your browser: [http://localhost:8000/](http://localhost:8000/)
10. Start developing your new Wagtail site on Docker!