devicehub-django/docker-compose.yml
pedro 9d963e7f54 docker: facilitate multiple instances in same host
start using namespace because more things are going to come in same
docker compose
2025-01-21 14:21:22 +01:00

19 lines
467 B
YAML

services:
devicehub-django:
init: true
build:
dockerfile: docker/devicehub-django.Dockerfile
environment:
- DEBUG=${DEBUG:-false}
- DOMAIN=${DH_DOMAIN:-localhost}
- PORT=${DH_PORT:-8000}
- ALLOWED_HOSTS=${DH_ALLOWED_HOSTS:-$DH_DOMAIN}
- DEMO=${DEMO:-false}
- PREDEFINED_TOKEN=${PREDEFINED_TOKEN:-}
- DPP=${DPP:-false}
volumes:
- .:/opt/devicehub-django
ports:
- ${DH_PORT}:${DH_PORT}