No description, website, or topics provided.
Python HTML Shell CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps
hello
.gitignore
Dockerfile
README.md
entry.sh
manage.py
requirements.txt
uwsgi.ini

README.md

AWS ECS compliant django application

Configuration

PostgreSQL database:

export DATABASE_URL=postgres://<user>:<password>@<host>/<name>

Secret key:

export SECRET_KEY=<secret>

Allowed host:

export DOMAIN_NAME=<domain>

Debug mode:

export DEBUG=1

S3 storage:

export AWS_STORAGE_BUCKET_NAME=<bucket name>
export AWS_ACCESS_KEY_ID=<access key>
export AWS_SECRET_ACCESS_KEY=<secret key>

CDN:

export CDN_DOMAIN_NAME=<domain>

Running the app

PORT=8000 uwsgi uwsgi.ini

Docker

Build:

docker build -t app:0.1 .

docker run \
    -p 8000:8000 \
    -e PORT=8000 \
    -e SECRET_KEY=secret \
    -e DOMAIN_NAME=localhost \
    -e DATABASE_URL=sqlite:// \
    app:0.1