version: "3" services: db: image: postgres:alpine environment: - POSTGRES_USER=ebau-gwr # following option is a must to configure on production system: # https://hub.docker.com/_/postgres # - POSTGRES_PASSWORD= volumes: - dbdata:/var/lib/postgresql/data gwr: ports: - "8000:8000" depends_on: - db environment: - DATABASE_HOST=db # following options are a must to configure on production system: # https://docs.djangoproject.com/en/2.1/ref/settings/#std:setting-SECRET_KEY # - SECRET_KEY= # https://docs.djangoproject.com/en/2.1/ref/settings/#allowed-hosts # - ALLOWED_HOSTS= # https://docs.djangoproject.com/en/2.1/ref/settings/#password # same as postgres password above # - DATABASE_PASSWORD= volumes: dbdata: