forked from projectcaluma/caluma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
36 lines (36 loc) · 997 Bytes
/
docker-compose.override.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
version: "3.4"
services:
db:
environment:
- POSTGRES_PASSWORD=caluma
ports:
- "${DATABASE_PORT:-5432}:${DATABASE_PORT:-5432}"
caluma:
image: projectcaluma/caluma:dev
build:
context: .
args:
REQUIREMENTS: requirements-all.txt
user: "${UID:?Set UID env variable to your user id}"
volumes:
- ./:/app
command:
[
"/bin/sh",
"-c",
"wait-for-it.sh db:${DATABASE_PORT:-5432} -- ./manage.py migrate && ./manage.py runserver 0.0.0.0:8000",
]
# example for profiling
# command: ./manage.py runprofileserver --use-cprofile 0.0.0.0:8000 --nothreading --prof-path /app
environment:
- ENV=development
minio:
image: minio/minio:latest@sha256:3b40c9044198667fbcd5bd1b68e778c9369be72cab446ed006d07cddd13f7665
volumes:
- minio_data:/data
ports:
- "9000:9000"
environment:
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
command: server data