-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.override.template.yml
58 lines (56 loc) · 1.7 KB
/
docker-compose.override.template.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
55
56
57
58
version: '3.4'
services:
dev:
build:
context: .
dockerfile: ./deployment/docker/Dockerfile-dev
volumes:
- static-data:/home/web/static
- media-data:/home/web/media
- ./django_project:/home/web/django_project
# Images on the platform will be stored here
- minio_images:/home/web/minio
ports:
# for django test server
- "5000:8080"
# for ssh
- "5001:22"
entrypoint: [ ]
django:
build:
context: .
dockerfile: ./deployment/docker/Dockerfile
volumes:
- static-data:/home/web/static
- media-data:/home/web/media
# Images on the platform will be stored here
- minio_images:/home/web/minio
environment:
- AWS_ACCESS_KEY=${MINIO_ROOT_USER:-minisass_admin}
- AWS_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD:-secure_minio_secret}
- DJANGO_DB=${POSTGRES_DB:-minisass_data}
- POSTGRES_USER=${POSTGRES_USER:-docker}
- POSTGRES_PASS=${POSTGRES_PASS:-docker}
- DATABASE_HOST=${DATABASE_HOST:-db}
- DATABASE_PORT=${DATABASE_PORT:-5432}
- SENTRY_KEY=${SENTRY_KEY:-}
- MINIO_ROOT=/home/web/minio
- MINIO_BUCKET=${BUCKET:-demo}
- MINIO_ACCESS_KEY=${MINIO_ROOT_USER:-minisass_admin}
- MINIO_SECRET_KEY=${MINIO_ROOT_PASSWORD:-secure_minio_secret}
- MINIO_AI_BUCKET=${BUCKET}
- MINIO_ENDPOINT=${MINIO_URL:-http://minio:9000}
- MINIO_URL=${MINIO_URL:-http://minio:9000}
- ALLOWED_HOSTS='*'
- DEV_SETUP=${DEV_SETUP}
depends_on:
db:
condition: service_healthy
restart: always
ports:
- "8080"
logging:
driver: json-file
options:
max-size: 200m
max-file: '10'