Simple bootstrapped demo of wagtail cms.
Mac installation for Docker
https://docs.docker.com/docker-for-mac/install/
Running NGINX and UWSGI
- git clone https://github.com/jamestaggart28/wagtail_demo.git
- docker-compose up
- In your browser navigate to: 0.0.0.0:8000
Getting shell access
- docker-compose exec app bash
- Create repo.
- Click the copy button next to the URI.
- Create a file for your reference with the following information:
- REPO URI: Paste the URI you copied for the repo.
- ENVIRONMENT: The type of environment you are setting up. (dev, staging, or production).
- SETTINGS: The name of the settings file you want to run no extension.
- REQUIREMENTS: The name of the requirements file you want to run no extension.
- DJANGO SECRET KEY: The secret key you are going to use for this container.
Note: Ideally ENVIRONMENT, REQUIREMENTS, and SETTINGS should all be the same value matching the type of environment you are trying to create.
- Run the following commands on mac and linux:
- $(aws ecr get-login --no-include-email --region us-east-1)
- docker build -t wagtail_demo --build-arg SETTINGS_ARG= <SETTINGS> --build-arg REQUIREMENTS_ARG=<REQUIREMENTS> .
- docker tag wagtail_demo:latest <REPO URI>:<ENVIRONMENT>
- docker push <REPO URI>:<ENVIRONMENT>
- Click the getting started button.
- Choose the custom container definition with appropriate <REPO URI>:<ENVIRONMENT> tag.
- Port Map 8000
- Setup the following environment variables for the container:
- SETTINGS: The name of the settings file you want to run no extension.
- REQUIREMENTS: The name of the requirements file you want to run no extension.
- DJANGO SECRET KEY: The secret you are going to use for this container.
- Follow the rest of the prompts and launch the cluster.
- Click on your new cluster, go to the running task, and visit <PUBLIC IP>:8000 in your browser.