Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 999 Bytes

README.md

File metadata and controls

28 lines (25 loc) · 999 Bytes

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