version: "3.4" services: db: image: postgres:9.6-alpine@sha256:ac98c2d56aa8090977792988553d38a0f5d1f12d857082b99b24b0d8a2ddda5e environment: - POSTGRES_USER=caluma # following option is a must to configure on production system: # https://hub.docker.com/_/postgres # - POSTGRES_PASSWORD= volumes: - dbdata:/var/lib/postgresql/data command: -p ${DATABASE_PORT:-5432} caluma: image: projectcaluma/caluma:latest ports: - "8000:8000" depends_on: - db # Example to include custom extensions # volumes: # - ./visibilities.py:/app/caluma/extensions/visibilities.py # - ./permissions.py:/app/caluma/extensions/permissions.py # - ./validations.py:/app/caluma/extensions/validations.py # - ./data_sources.py:/app/caluma/extensions/data_sources.py # - ./format_validators.py:/app/caluma/extensions/format_validators.py 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= # https://github.com/projectcaluma/caluma#visibility-classes # - VISIBILITY_CLASSES= # https://github.com/projectcaluma/caluma#permission-classes # - PERMISSION_CLASSES= ## For support of files question and answer, use MinIO # minio: # image: minio/minio:latest # volumes: # - minio_data:/data # ports: # - "9000:9000" # environment: # - MINIO_ACCESS_KEY= # - MINIO_SECRET_KEY= # command: server data volumes: dbdata: minio_data: