Skip to content
Snippets Groups Projects
Commit 46ee71d8 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Remove docker-compose, entrypoint and .env.example

parent 7d5086fe
No related branches found
No related tags found
No related merge requests found
# This has to be set to any good enough random string. E.g. something that
# `pwgen -s 32 1` would print out. If you want to know more about this go to
# https://docs.djangoproject.com/en/3.2/ref/settings/#secret-key
# (mandatory setting)
SECRET_KEY=put-something-awesomely-random-here
# A comma-separated list of hostnames/IPs Django should listen to. For a
# production setup this will be something like aura.example.org, for a dev
# setup you might just use the default settings.
# Important: do not put spaces between commas and values!
# (default: 127.0.0.1,localhost)
#ALLOWED_HOSTS=
# A comma-separated list of URIs where the webclients live that should be able
# to access the steering API. In particular the dashboard. Might not be needed
# in a production setup if steering and dashboard share the same domain. In
# a dev setup the defaults might be just fine.
# Important: do not put spaces between commas and values!
# (default: http://127.0.0.1:8080,http://localhost:8080)
#CORS_ORIGIN_WHITELIST=
# The database settings.
# if you use a dev environment where django is not running inside a docker
# container, but you use the postgres container for the db and map its port,
# then use localhost as the database hostname
# (default host: postgres)
# (default port: 5432)
# (default name: steering)
# (default user: steering)
# (password is a mandatory setting)
#DATABASE_HOST=
#DATABASE_PORT=
#POSTGRES_DB=
#POSTGRES_USER=
POSTGRES_PASSWORD=change-to-something-secure
# The timezone of this server. For a list of all available tz database names see
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# (default: Europe/Vienna)
#TIME_ZONE=
# The language code for the localization of this server. For a list of available
# codes see http://www.i18nguy.com/unicode/language-identifiers.html
# (default: de)
#LANGUAGE_CODE=
# This should be turned on only for your development environment unless you
# know exactly what you are doing and what the consequences are.
# (default: False)
#DEBUG=
version: '3.8'
services:
django:
build: .
command: python manage.py runserver 0.0.0.0:8000
container_name: django
volumes:
- .:/steering
expose:
- "8000"
ports:
- "8000:8000"
depends_on:
- postgres
environment:
- DEBUG=True
- SECRET_KEY=foo
- POSTGRES_PASSWORD=aura
postgres:
image: postgres:13.7-bullseye
container_name: steering-postgres
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=steering
- POSTGRES_PASSWORD=aura
- POSTGRES_DB=steering
- TZ=Europe/Vienna
expose:
- "5432"
volumes:
postgres_data:
#!/bin/bash
set -e
python /tmp/manage.py loaddata /tmp/fixtures/*/*.json
python /tmp/manage.py runserver 0.0.0.0:8000
exec "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment