demo-HTML-over-WebSockets-i.../docker-compose.dev.yaml

43 lines
832 B
YAML
Raw Normal View History

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"
2021-03-11 21:58:01 +01:00
ALLOWED_HOSTS: "localhost,my-demo.localhost"
2021-03-07 18:15:29 +01:00
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-17 22:25:00 +01:00
redis:
image: redis:alpine
restart: always
expose:
- 6379
2021-03-07 18:15:29 +01:00
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:
2021-03-17 22:25:00 +01:00
- django