django-template/docker-compose.dev.yaml
2021-09-03 17:57:01 +02:00

59 lines
1.1 KiB
YAML

version: '3.1'
services:
django:
build:
context: ./
dockerfile: ./Dockerfiles/django/Dockerfile
restart: unless-stopped
entrypoint: /django-launcher.dev.sh
volumes:
- .:/usr/src/app/
environment:
DEBUG: "True"
ALLOWED_HOSTS: ""
SECRET_KEY: ""
DB: "database.sqlite"
DOMAIN: "api.localhost"
DOMAIN_URL: "http://api.localhost"
STATIC_URL: "/static/"
STATIC_ROOT: "static"
MEDIA_URL: "/media/"
REDIS_HOST: "redis"
REDIS_PORT: "6379"
EMAIL_HOST: "mailhog"
EMAIL_USE_TLS: "False"
EMAIL_PORT: "1025"
EMAIL_USER: ""
EMAIL_PASSWORD: ""
expose:
- 8000
caddy:
image: caddy:alpine
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile.dev:/etc/caddy/Caddyfile
- ./../caddy_data:/data
- .:/usr/src/app/
depends_on:
- django
redis:
image: redis:alpine
restart: unless-stopped
expose:
- 6379
mailhog:
image: mailhog/mailhog:latest
restart: unless-stopped
expose:
- 1025
ports:
- 8025:8025