-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (42 loc) · 1.12 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
services:
web:
build: .
ports:
- "80:80"
environment:
REACT_APP_BACKEND_URL: "http://localhost:8000"
DJANGO_DB_NAME: todoqueue
DJANGO_DB_USER: todo_user
DJANGO_DB_PASSWORD: todo_password
DJANGO_DB_HOST: db
DJANGO_DB_PORT: "3306"
EMAIL_HOST: smtp-mail.outlook.com
EMAIL_PORT: 587
EMAIL_USE_TLS: "1"
EMAIL_HOST_USER: [email protected]
DEFAULT_FROM_EMAIL: [email protected]
EMAIL_HOST_PASSWORD: MyPassword!
DJANGO_DEBUG: true
DJANGO_LOGGING_LEVEL: debug
DJANGO_HOST_PORT: "8000"
DJANGO_CACHE_BACKEND: "redis"
DJANGO_CACHE_LOCATION: "redis://cache:6379/1"
DJANGO_SUPERUSER_EMAIL: [email protected]
DJANGO_SUPERUSER_USERNAME: James
DJANGO_SUPERUSER_PASSWORD: MyPassword!
depends_on:
- db
- cache
cache:
image: "redis:alpine"
db:
image: mysql:8.2
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_DATABASE: todoqueue
MYSQL_USER: todo_user
MYSQL_PASSWORD: todo_password
MYSQL_ROOT_PASSWORD: root_password
volumes:
mysql_data: