-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 1.44 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
# This is meant for local development, but should give an idea of what you
# can consider in production.
services:
db:
image: postgres:16
container_name: sadilar-terminology-db
environment:
- POSTGRES_DB=term_db
- POSTGRES_USER=sadilar
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- .:/app
ports:
- "5432:5432"
web:
build:
context: .
dockerfile: Dockerfile-dev
container_name: sadilar-terminology-web
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./app:/app
- ./logging:/logging
- ./pdf_uploads:/pdf_uploads
- ./pdf_upload_completed:/pdf_upload_completed
ports:
- "8000:8000"
depends_on:
- db
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- SECRET_KEY=${SECRET_KEY}
- DEBUG=True
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=term_db # see POSTGRES_DB above
- DB_USER=sadilar # see POSTGRES_USER above
- DB_PASSWORD=${DB_PASSWORD} # see POSTGRES_PASSWORD above
- TESTING_DIR=/app/general/tests/files/
- FEATURE_FLAG=search_feature
- EMAIL_HOST=${EMAIL_HOST-}
- EMAIL_HOST_USER=${EMAIL_HOST_USER-}
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD-"none"}
- EMAIL_PORT=${EMAIL_PORT-"none"}
- EMAIL_BACKEND_CONSOLE=${EMAIL_BACKEND_CONSOLE:-True}
- EMAIL_USE_TLS=${EMAIL_USE_TLS:-True}
- ALLOWED_HOSTS=${ALLOWED_HOSTS-}