-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
102 lines (94 loc) · 2.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
---
# yamllint disable-line-length
version: '2.1'
# 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:
- poradnia-app-network
environment:
MYSQL_ROOT_PASSWORD: "password"
volumes:
- ./.contrib/docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
- mysql-data:/var/lib/mysql
gulp:
build:
context: .
dockerfile: .contrib/docker/Dockerfile.gulp
ports:
- "35729:35729"
networks:
- poradnia-app-network
volumes:
- .:/app
web:
# image: docker-registry.siecobywatelska.pl/poradnia/web
build:
context: .
dockerfile: .contrib/docker/Dockerfile.web
# args:
# PYTHON_VERSION: '${PYTHON_VERSION:-3.7}'
volumes:
- .:/code
environment:
DATABASE_URL: mysql://root:password@db/poradnia
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: "[poradnia_dev] "
DJANGO_DEFAULT_FROM_EMAIL: "poradnia_dev <[email protected]>"
LETTER_RECEIVE_SECRET: "dev_letter_receive_very_secret"
# [email protected] must be included in LETTER_RECEIVE_WHITELISTED_ADDRESS for tests
LETTER_RECEIVE_WHITELISTED_ADDRESS: "[email protected],[email protected]"
DJANGO_RICH_TEXT_ENABLED: "False"
APP_MODE: "DEV"
ROSETTA_AZURE_CLIENT_SECRET: ${ROSETTA_AZURE_CLIENT_SECRET}
MY_INTERNAL_IP: ${MY_INTERNAL_IP}
ports:
- "8000:8000"
networks:
- poradnia-app-network
maildump:
build:
context: .
dockerfile: .contrib/docker/Dockerfile.maildump
volumes:
- maildump_data:/data
ports:
- "1080:1080"
- "1025:1025"
networks:
- poradnia-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-porady:
# 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: "porady-dev"
# COMPRESS_EML: "True"
# env_file:
# - imap-to-webhook-url.env
# networks:
# - poradnia-app-network
volumes:
mysql-data:
maildump_data:
networks:
poradnia-app-network:
driver: bridge