-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (94 loc) · 2.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
101 lines (94 loc) · 2.1 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
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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
stdin_open: true
tty: true
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile.backend
container_name: backend
ports:
- "8000:8000"
volumes:
- ./backend:/app
env_file:
- ./backend/.env
environment:
# Email settings for MailHog
- EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
- EMAIL_HOST=mailhog
- EMAIL_PORT=1025
- EMAIL_USE_TLS=False
- EMAIL_HOST_USER=
- EMAIL_HOST_PASSWORD=
- DEFAULT_FROM_EMAIL=noreply@siskidomain.com
- FRONTEND_URL=http://localhost:3000
depends_on:
- db
- redis
- es
celery_worker:
build:
context: ./backend
dockerfile: Dockerfile.backend
container_name: celery_worker
command: celery -A backend worker --loglevel=info
volumes:
- ./backend:/app
env_file:
- ./backend/.env
environment:
- EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
- EMAIL_HOST=mailhog
- EMAIL_PORT=1025
- EMAIL_USE_TLS=False
- DEFAULT_FROM_EMAIL=noreply@siskidomain.com
- FRONTEND_URL=http://localhost:3000
depends_on:
- db
- redis
- backend
db:
image: postgres:14-alpine
container_name: db
ports:
- "5432:5432"
volumes:
- dev-db-data:/var/lib/postgresql/data
env_file:
- ./backend/.env
es:
image: elasticsearch:8.12.0
container_name: elastic-search
ports:
- "9200:9200"
volumes:
- es-data:/usr/share/elasticsearch/data
env_file:
- ./backend/.env
environment:
- discovery.type=single-node
- xpack.security.enabled=true
mailhog:
image: mailhog/mailhog:latest
ports:
- "1025:1025"
- "8025:8025"
redis:
image: "redis:alpine"
hostname: redis
volumes:
dev-db-data:
es-data: