django-template/docker-compose.dev.yaml

64 lines
1.3 KiB
YAML
Raw Normal View History

2021-04-01 09:48:35 +02:00
version: '3.1'
services:
django:
build:
context: ./
2021-07-05 11:45:32 +02:00
dockerfile: ./Dockerfiles/django/Dockerfile
2021-04-07 08:56:57 +02:00
restart: unless-stopped
2021-04-01 09:48:35 +02:00
entrypoint: /django-launcher.dev.sh
volumes:
- .:/usr/src/app/
environment:
DEBUG: "True"
ALLOWED_HOSTS: ""
SECRET_KEY: ""
2021-10-21 14:55:55 +02:00
DB_ENGINE: "django.db.backends.sqlite3"
DB_NAME: "database.sqlite"
DB_USER: ""
DB_PASSWORD: ""
DB_HOST: ""
DB_PORT: ""
DOMAIN: "ejemplo.localhost"
DOMAIN_URL: "http://ejemplo.localhost"
2021-04-01 09:48:35 +02:00
STATIC_URL: "/static/"
2021-04-21 16:55:33 +02:00
STATIC_ROOT: "static"
2021-04-01 09:48:35 +02:00
MEDIA_URL: "/media/"
2021-08-26 18:17:34 +02:00
REDIS_HOST: "redis"
REDIS_PORT: "6379"
2021-04-01 09:48:35 +02:00
EMAIL_HOST: "mailhog"
EMAIL_USE_TLS: "False"
EMAIL_PORT: "1025"
EMAIL_USER: ""
EMAIL_PASSWORD: ""
expose:
- 8000
caddy:
image: caddy:alpine
2021-04-07 08:56:57 +02:00
restart: unless-stopped
2021-04-01 09:48:35 +02:00
ports:
- 80:80
- 443:443
volumes:
2021-04-16 18:35:06 +02:00
- ./Caddyfile.dev:/etc/caddy/Caddyfile
2021-04-01 09:48:35 +02:00
- ./../caddy_data:/data
- .:/usr/src/app/
depends_on:
- django
2021-06-14 09:21:19 +02:00
redis:
image: redis:alpine
2021-09-03 17:57:01 +02:00
restart: unless-stopped
2021-06-14 09:21:19 +02:00
expose:
- 6379
2021-04-01 09:48:35 +02:00
mailhog:
image: mailhog/mailhog:latest
2021-04-07 08:56:57 +02:00
restart: unless-stopped
2021-04-01 09:48:35 +02:00
expose:
2021-06-13 22:04:20 +02:00
- 1025
2021-04-01 09:48:35 +02:00
ports:
- 8025:8025