This guide uses Docker Compose to run Wagtail in containers.
For Docker installation, see Docker.
cat <<'YAML' > docker-compose.yml
services:
app:
image: python:3.11
restart: unless-stopped
ports:
- "8000:8000"
working_dir: /app
volumes:
- ./app:/app
command: "python manage.py runserver 0.0.0.0:8000"
YAML
docker compose up -d
Running containers in production? We help with:
Need help? office@linux-server-admin.com or Contact Us