FIX Error: Database is uninitialized and superuser password is not specified.
Env vars needs to be defined in both the "db" and "web" containers
In "db", so it can create the default user from it
In "web", so it can be used in settings.py to connect django to the postgres container
* [FIX] update documentation
- add `PYTHONDONTWRITEBYTECODE` environment variable
- rename pip package `psycopg2-binary` to `psycopg2`
- add db environment variables in docker-compose for a better usage
- use `os.environment` in `setting.py` to get environment variables
* [fix] update documentation
BuildKit allows using alternative Dockerfile syntaxes to introduce new features
without having to update Docker itself. The general recommendation is to always
specify a "syntax" directive in a Dockerfile, so that (if needed) older versions
of Docker can download the correct syntax to build the Dockerfile.
This updates our examples to include a syntax directive, to make users more familiar
with these directives, and to illustrate best-pracitces in our documentation.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Unifying all "examples" in this directory; some of these should still be
reviewed and/or removed in favor of examples from "awesome compose"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>