Skip to content

Docker Image for reverse proxy django apps with caddyserver and alpine linux

License

Notifications You must be signed in to change notification settings

Drivetech/django-caddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-caddy

dockeri.co

Build Status

Docker Image for reverse proxy django apps with caddyserver and alpine linux

Supported tags and respective Dockerfile links

Instructions

docker create volume --name static
docker create volume --name media
docker create volume --name logs
docker run -d --name django -v static:/path/to/static -v media:/path/to/media -e PORT 8000 your-django-image-with-gunicorn
docker run -d --name caddy --link django:django -v static:/var/www/static -v media:/var/www/media -v logs:/var/log -e PORT 8000 lgatica/django-caddy

docker-compose.yml

version: '2'
services:
  django:
    image: your-django-image-with-gunicorn
    environment:
      - PORT=8000
    volumes:
      - static:/path/to/static
      - media:/path/to/media
  caddy:
    image: lgatica/django-caddy:latest
    links:
      - django:django
    environment:
      - PORT=8000
    ports:
      - 80:80
    volumes:
      - static:/var/www/static
      - media:/var/www/media
      - logs:/var/log
volumes:
  static:
  media:
  logs:

About

Docker Image for reverse proxy django apps with caddyserver and alpine linux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published