forked from watchdogpolska/feder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (104 loc) · 3.41 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
version: '2.1'
# This is application’s services configuration for development purposes only.
services:
db:
image: mariadb:10.11
command: '--character-set-server=utf8 --collation-server=utf8_polish_ci --max_allowed_packet=1024M' # yamllint disable-line
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_DATABASE: feder3_copy
volumes:
- mariadb-data:/var/lib/mysql
gulp:
build:
context: .
dockerfile: .contrib/docker/Dockerfile.gulp
ports:
- "35729:35729"
volumes:
- .:/app
web:
build: &webBuild
context: .
dockerfile: .contrib/docker/Dockerfile.web
# args:
# PYTHON_VERSION: '${PYTHON_VERSION:-3.6.9}' # Match to production environment
# PYTHON_VERSION: '${PYTHON_VERSION:-3.10.6}' # Match to staging environment
# DJANGO_VERSION: '${DJANGO_VERSION:-==3.1.5}'
volumes: &webVolumes
- .:/code
environment: &webEnvironment
DATABASE_URL: mysql://root:password@db/feder3_copy
ELASTICSEARCH_URL: http://elasticsearch:9200/
APACHE_TIKA_URL: 'http://tika:9998/'
# APACHE_TIKA_URL: 'http://192.168.100.120:9998/'
MEDIA_ROOT_ENV: 'media_prod'
DJANGO_EMAIL_BACKEND: "django.core.mail.backends.smtp.EmailBackend"
DJANGO_EMAIL_HOST: "maildump"
DJANGO_EMAIL_PORT: "1025"
DJANGO_EMAIL_USE_TLS: "False"
DJANGO_EMAIL_HOST_PASSWORD: ""
DJANGO_EMAIL_HOST_USER: "[email protected]"
DJANGO_EMAIL_SUBJECT_PREFIX: "[feder_dev] "
DJANGO_EMAIL_NOTIFICATION: "[email protected]"
DJANGO_DEFAULT_FROM_EMAIL: "feder_dev <[email protected]>"
LETTER_RECEIVE_SECRET: "dev_letter_receive_very_secret"
APP_MODE: "DEV"
ROSETTA_AZURE_CLIENT_SECRET: ${ROSETTA_AZURE_CLIENT_SECRET}
MY_INTERNAL_IP: ${MY_INTERNAL_IP}
VIRUSTOTAL_API_KEY: ""
ATTACHMENTSCANNER_API_KEY: ""
ATTACHMENTSCANNER_API_URL: ""
METADEFENDER_API_KEY: ${METADEFENDER_API_KEY}
ports:
- "8000:8000"
# Following allows to execute `docker attach feder_web_1`
# necessary when using ipdb in development:
stdin_open: true
tty: true
# *
# * for debugging purposes it is better to run worker in VScode launch on web container
# *
# worker:
# command: python manage.py process_tasks
# build: *webBuild
# volumes: *webVolumes
# environment: *webEnvironment
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
environment:
discovery.type: single-node
cluster.routing.allocation.disk.threshold_enabled: 'false'
ports:
- "9200:9200"
tika:
image: quay.io/watchdogpolska/apache-tika
maildump:
build:
context: .
dockerfile: .contrib/docker/Dockerfile.maildump
volumes:
- maildump_data:/data
ports:
- "1080:1080"
- "1025:1025"
#
# To use email reception uncomment below section and fill in your dev IMAP
# mailbox secrets in imap-to-webhook-url.env
#
# imap-to-webhook-feder:
# image: quay.io/watchdogpolska/imap-to-webhook:latest
# environment:
# WEBHOOK_URL: >
# "http://web:8000/listy/webhook?secret=dev_letter_receive_very_secret"
# SENTRY_DSN: ""
# SENTRY_ENVIRONMENT: "feder-dev"
# COMPRESS_EML: "True"
# env_file:
# - secrets_imap-to-webhook-url.env
volumes:
mariadb-data:
maildump_data: