django-template/docker-compose.dev.yaml

57 lines
1.1 KiB
YAML
Raw Normal View History

2021-04-01 09:48:35 +02:00
version: '3.1'
services:
django:
build:
context: ./
2021-04-01 09:48:35 +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-06-01 10:42:05 +02:00
DB: "database.sqlite"
2021-04-01 09:48:35 +02:00
DOMAIN: "api.localhost"
DOMAIN_URL: "http://api.localhost"
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/"
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
restart: always
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