html-over-websockets-with-d.../docker-compose.yaml

75 lines
1.5 KiB
YAML
Raw Normal View History

2021-11-08 23:32:13 +01:00
services:
2021-11-11 22:46:49 +01:00
db:
image: postgres:14-alpine
2021-11-08 23:32:13 +01:00
restart: "no"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: event
ports:
- 5432:5432
django:
build:
context: ./
dockerfile: ./Dockerfile
restart: unless-stopped
entrypoint: /django-launcher.sh
volumes:
- .:/usr/src/app/
environment:
DEBUG: "True"
2021-11-11 22:46:49 +01:00
ALLOWED_HOSTS: "event.localhost,localhost"
2021-11-08 23:32:13 +01:00
SECRET_KEY: "my-secret"
DB_ENGINE: "django.db.backends.postgresql"
DB_NAME: "event"
DB_USER: "postgres"
DB_PASSWORD: "postgres"
2021-11-11 22:46:49 +01:00
DB_HOST: db
2021-11-08 23:32:13 +01:00
DB_PORT: "5432"
DOMAIN: "event.localhost"
DOMAIN_URL: "http://event.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: ""
2021-11-11 22:46:49 +01:00
ports:
- 8000:8000
2021-11-08 23:32:13 +01:00
depends_on:
2021-11-11 22:46:49 +01:00
- db
2021-11-08 23:32:13 +01:00
2021-11-11 22:46:49 +01:00
web:
2021-11-08 23:32:13 +01:00
image: caddy:alpine
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/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