-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
133 lines (122 loc) · 3.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
# yamllint disable-line-length
# This is application’s services configuration for development purposes only.
services:
db:
image: mysql:8.0.36-bullseye
security_opt:
- seccomp:unconfined
command: >-
--character-set-server=utf8mb4
--collation-server=utf8mb4_polish_ci
--max_allowed_packet=1024M
ports:
- "3306:3306"
networks:
- feder-app-network
environment:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_DATABASE: feder # feder_copy
volumes:
- mysql-data:/var/lib/mysql
gulp:
build:
context: .
dockerfile: .contrib/docker/Dockerfile.gulp
ports:
- "35729:35729"
networks:
- feder-app-network
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/feder # feder3_copy_mb4
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_rec_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}
FILE_TO_TEXT_URL: ${FILE_TO_TEXT_URL}
FILE_TO_TEXT_TOKEN: ${FILE_TO_TEXT_TOKEN}
EMAILLABS_APP_KEY: ${EMAILLABS_APP_KEY}
EMAILLABS_SECRET_KEY: ${EMAILLABS_SECRET_KEY}
OPENAI_API_KEY: ${OPENAI_API_KEY}
AZURE_ENDPOINT: ${OPENAI_API_BASE}
OPENAI_API_ENGINE_35: "gpt-35-turbo-16k"
OPENAI_API_ENGINE_4: "gpt-4o"
OPENAI_API_TYPE: "azure"
OPENAI_API_ENGINE_35_MAX_TOKENS: 16000
OPENAI_API_ENGINE_4_MAX_TOKENS: 100000
OPENAI_API_TEMPERATURE: 0.0
OPENAI_API_VERSION: "2024-09-01-preview"
ports:
- "8000:8000"
networks:
- feder-app-network
# 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
maildump:
build:
context: .
dockerfile: .contrib/docker/Dockerfile.maildump
volumes:
- maildump_data:/data
ports:
- "1080:1080"
- "1025:1025"
networks:
- feder-app-network
#
# 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: siecobywatelska/imap-to-webhook:latest-prod
# environment:
# WEBHOOK_URL: "http://web:8000/listy/webhook?secret=dev_letter_rec_very_secret"
# SENTRY_DSN: ""
# SENTRY_ENVIRONMENT: "feder-dev"
# COMPRESS_EML: "True"
# env_file:
# - secrets_imap-to-webhook-url.env
# networks:
# - feder-app-network
volumes:
mysql-data:
maildump_data:
networks:
feder-app-network:
driver: bridge