-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
59 lines (55 loc) · 1.48 KB
/
docker-compose.dev.yml
File metadata and controls
59 lines (55 loc) · 1.48 KB
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
services:
frontend:
build:
target: dev
volumes:
- ./frontend:/app
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://frontend:3000"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
mailpit:
image: axllent/mailpit
ports:
- "1025:1025"
- "8025:8025"
backend-init:
build:
target: dev
environment:
SERVICE_MODE: development-init
volumes:
- ./backend:/app
backend:
build:
target: dev
environment:
POSTGRES_USER: db_admin
SERVICE_MODE: development
DJANGO_DEBUG_MODE: True
POSTGRES_PASSWORD_FILE: /run/secrets/db-admin-pass
#DJANGO_EMAIL_BACKEND: django.core.mail.backends.console.EmailBackend
DJANGO_EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
DJANGO_DEFAULT_FROM_EMAIL: licensing-local@example.com
DJANGO_EMAIL_HOST: mailpit
DJANGO_EMAIL_PORT: 1025
DJANGO_EMAIL_HOST_USER: ""
DJANGO_EMAIL_USE_SSL: false
DJANGO_EMAIL_HOST_PASSWORD_FILE: /run/secrets/django-email-password
LICENSING_EMAIL_FROM_ADDR: user@email.example.com
LICENSING_EMAIL_SUBJECT: "Hello world from bird ringing ({{mnr}}) {{name|safe}}"
volumes:
- ./backend:/app
secrets:
- db-admin-pass
- django-email-password
proxy:
environment:
SERVICE_MODE: development
depends_on:
frontend:
condition: service_healthy
backend:
condition: service_healthy