2021-03-07 18:15:29 +01:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
django:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfiles/django/Dockerfile
|
|
|
|
restart: always
|
|
|
|
entrypoint: /django-launcher.dev.sh
|
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app/
|
|
|
|
environment:
|
|
|
|
DEBUG: "True"
|
|
|
|
ALLOWED_HOSTS: "localhost"
|
|
|
|
SECRET_KEY: "mysecret"
|
2021-03-09 22:03:17 +01:00
|
|
|
DOMAIN: "my-demo.localhost"
|
|
|
|
DOMAIN_URL: "http://my-demo.localhost"
|
2021-03-07 18:15:29 +01:00
|
|
|
STATIC_URL: "/static/"
|
|
|
|
MEDIA_URL: "/media/"
|
2021-03-11 21:23:55 +01:00
|
|
|
REDIS_URL: redis
|
2021-03-07 18:15:29 +01:00
|
|
|
expose:
|
|
|
|
- 8000
|
2021-03-11 21:23:55 +01:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2021-03-07 18:15:29 +01:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- 6379
|
|
|
|
|
|
|
|
|
|
|
|
caddy:
|
|
|
|
image: caddy:alpine
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
2021-03-09 22:03:17 +01:00
|
|
|
- ./caddy_data:/data
|
2021-03-07 18:15:29 +01:00
|
|
|
- .:/usr/src/app/
|
|
|
|
depends_on:
|
|
|
|
- django
|