forked from projectcaluma/caluma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (53 loc) · 1.85 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3.4"
services:
db:
image: postgres:9.6-alpine@sha256:8342bcb43446694428ec6594e72e4299692854f0fc3aca090b0ab46f4c7f32a1
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: ghcr.io/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: