This repo contains a template for docker-compose with Django + Postgres + Celery + Redis + Vue.js + Nginx + Caddy (optional)
- docker
- docker-compose
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
docker-compose -f docker-compose.base.yaml -f docker-compose.prod.yaml up -d
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
docker-compose -f docker-compose.base.yaml -f docker-compose.dev.yaml up -d