-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
75 lines (64 loc) · 1.59 KB
/
docker-compose.dev.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
###############################################################################
# In settings.py:
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'HOST': 'mysql',
# { ...
# }
# }
#
# In PyCharm configurations:
# Host: 0.0.0.0 - Port: 8000
# Python interpreter: Select the docker ...
###############################################################################
version: "3.1"
services:
django:
restart: always
build:
context: .
dockerfile: Dockerfile.dev
container_name: ${PROJECT_NAME}-django
command: .entrypoint.dev.sh
env_file:
- .env
volumes:
- ./app:/app
- static_volume:/app/staticfiles
- ./app/node_modules:/app/node_modules
ports:
- 8000:8000
depends_on:
- mysql
- redis
mysql:
image: mysql:5.6
container_name: ${PROJECT_NAME}-mysql
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- mysql-data:/var/lib/mysql
ports:
- "8308:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: ${PROJECT_NAME}-phpmyadmin
environment:
- PMA_HOST=leadmanager-mysql
- COMPOSE_HTTP_TIMEOUT=180
restart: always
ports:
- 8084:80
volumes:
- /session
redis:
image: redis:latest
container_name: ${PROJECT_NAME}-redis
ports:
- 6378:6378
volumes:
mysql-data:
static:
static_volume:
node_modules: