Sign inSign up

homelandsocial/website-final

By homelandsocial

Updated over 4 years ago

Image
0

785

homelandsocial/website-final repository overview

website-final docker image

This image contains the website frontend (vue.js) backend (django) and static files. Everything is served by uWSGI and meant to be behind a proxy. Haproxy is used for this purpose. Several additional commands are supported.

Using this image

$ docker run -ti homelandsocial/website-final
Example docker-compose

https://raw.githubusercontent.com/homeland-social/website/master/docker-compose.yml

Environment variables

NameDescriptionDefault
DJANGO_DB_NAMEPostgres database nameshanty
DJANGO_DB_HOSTPostgres server addressdb
DJANGO_DB_USERPostgres user nameshanty
DJANGO_DB_PASSWORDPostgres password
DJANGO_DB_PASSWORD_FILESame as previous, for use with docker secrets
DJANGO_REDIS_HOSTRedis server addressredis
DJANGO_REDIS_PORTRedis server port6379
DJANGO_HOSTAddress to bind to0.0.0.0
DJANGO_PORTPort to bind to8000
DJANGO_ALLOWED_HOSTSValid domains to use with django, comma separatedlocalhost
DJANGO_DEBUGEnable django debug mode true or falsefalse
DJANGO_SECRET_KEYDjango secret key
DJANGO_SECRET_KEY_FILESame as previous, for use with docker secrets
DJANGO_EMAIL_BACKENDEmail backend to usedjango.core.mail.backends.console.EmailBackend
DJANGO_MAILJET_API_KEYMailjet api key when using django_mailjet.backends.MailjetBackend backend
DJANGO_MAILJET_API_KEY_FILESame as previous, for use with docker secrets
DJANGO_MAILJET_API_SECRETMailjet api key when using django_mailjet.backends.MailjetBackend backend
DJANGO_MAILJET_API_SECRET_FILESame as previous, for use with docker secrets
DJANGO_RECAPTCHA_SECRET_KEYRecaptcha api key
DJANGO_RECAPTCHA_SECRET_KEY_FILESame as previous, for use with docker secrets

Several additional commands are supported. These will run something other than the uWSGI webserver (the default command).

Command migrate

Runs Django migrations.

Using this image
$ docker run -ti homelandsocial/website-final migrate

Command celery

Runs celery job worker.

In addition to the above settings, you can define the following celery-specific options.

Using this image
$ docker run -ti homelandsocial/website-final celery
Environment variables
NameDescriptionDefault
CELERY_BEAT_SCHEDULERCelery beat scheduler to use

Command beat

Runs celery beat scheduler.

In addition to the above settings, you can define the following celery-specific options.

Using this image
$ docker run -ti homelandsocial/website-final beat
Environment variables
NameDescriptionDefault
CELERY_BEAT_SCHEDULERCelery beat scheduler to use

Tag summary

Content type

Image

Digest

Size

145.9 MB

Last updated

over 4 years ago

docker pull homelandsocial/website-final