forked from adityagoyal222/django-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 890 Bytes
/
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
version: '3'
services:
db:
image: mysql:8
container_name: mysql_django_lms
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=django_lms
- MYSQL_USER=root
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
volumes:
- dbvol:/var/lib/mysql
networks:
- internal
web:
container_name: django_lms
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
expose:
- "8000"
volumes:
- .:/app
depends_on:
- db
networks:
- internal
nginx:
image: nginx
container_name: nginx_django_lms
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- web
networks:
- internal
redis:
image: redis
networks:
internal:
driver: bridge
volumes:
dbvol: