-
Install dependencies
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
-
Add Docker’s GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
-
Install the Docker Repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
-
Update Repositories
sudo apt-get update
-
Install Latest Version of Docker
sudo apt-get install docker-ce
-
Download the Docker Compose binary
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-
Apply executable permissions to the Compose binary
sudo chmod +x /usr/local/bin/docker-compose
git clone https://github.com/gsi-luis/wagtail.git
/path/to/root/of/project
|-config (configurations files used into containers)
|-Dockerfiles (docker files and docker composes)
|-src (root of project django)
|-.env.example (env file example by keys used by environment)
|-deploy-dev (bash file commands for deployment environment develop)
|-LICENSE
|-README.md
* Python 3.8.3
* Wagtail 2.10
* Postgis 9.6+
* Nginx
Note: view requirements.txt for all dependencies used.
cd /path/to/root/of/project
cp .env.example src/.env
nano src/.env
172.70.0.3 wagtaillearning.api.dev.local.com
-
Move to root of project and run script to initiate application
cd /path/to/root/of/project bash deploy-dev
-
Create admin user for default:
docker exec -it container.wagtaillearning.api.dev.local.com sh python manage.py createsuperuser
-
Access to app from browser:
http://wagtaillearning.api.dev.local.com/admin/
- Access to app from browser:
http://wagtaillearning.api.dev.local.com/flower/
- Authentication to app from browser:
username: celery password: celerymonitor
Run from project root directory inside of django.learning.app.dev.local.com container:
python manage.py test
DEBUG=1
SECRET_KEY='bwj+--xg41((^+rqcvi!ueabmd6bbgl_vqs@5fho05ygdj!tx='
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 wagtaillearning.api.dev.local.com [::1]
SQL_ENGINE=django.db.backends.postgresql
SQL_DATABASE=dev
SQL_USER=apilocal
SQL_PASSWORD=apilocal
SQL_HOST=wagtaillearning_api_postgres
SQL_PORT=5432