Adding the Django service
Within docker-compose.yaml
, replace the entire python
block with the following:
django: build: context: ./ dockerfile: ./Dockerfile entrypoint: bash ./django-launcher.sh volumes: - .:/usr/src/app/ environment: DEBUG: "True" ALLOWED_HOSTS: hello.localhost SECRET_KEY: mysecret DB_ENGINE: django.db.backends.postgresql DB_NAME: hello_db DB_USER: postgres DB_PASSWORD: postgres DB_HOST: postgresql DB_PORT: 5432 &...