Skip to content

This repo contains a template for docker-compose with Django + Postgres + Celery + Redis + Vue.js + Nginx + Caddy (optional)

Notifications You must be signed in to change notification settings

melehin/django-celery-vue-template

Repository files navigation

Description

This repo contains a template for docker-compose with Django + Postgres + Celery + Redis + Vue.js + Nginx + Caddy (optional)

Requirements

  • docker
  • docker-compose

How to run

Copy .env.example to .env and change it.

⚠️ Only /api/ and /admin/ routes are proxied to django!

First time run cmd below to start db and wait for a while for db initialization to complete.

docker-compose -f docker-compose.base.yaml up -d db

Production

docker-compose -f docker-compose.base.yaml -f docker-compose.prod.yaml up -d

Production with HTTPS (with Let's Encrypt by Caddy)

Change HTTPS_DOMAIN environment variable inside .env from localhost to your domain name

docker-compose -f docker-compose.base.yaml -f docker-compose.prod+ssl.yaml up -d

Development (a hot-reload of Vue.js and Django apps. Celery tasks updated by manual required)

docker-compose -f docker-compose.base.yaml -f docker-compose.dev.yaml up -d

About

This repo contains a template for docker-compose with Django + Postgres + Celery + Redis + Vue.js + Nginx + Caddy (optional)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published