-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
45 lines (43 loc) · 980 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
version: '3.7'
services:
nginx:
image: nginx:latest
volumes:
- ./nginx/logs:/var/log/nginx
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
# Add static files for nginx to serve.
- ./website/static:/website/static
depends_on:
- django
networks:
- django_frontend-net
ports:
- 8000:80
django:
image: dtempleton/django:latest
depends_on:
- db
env_file:
- ./env/django-mariadb.env
- ./env/django.env
- ./env/dev.env
volumes:
- ./website:/home/django/website
networks:
- django_frontend-net
- django_backend-net
db:
image: mariadb:latest
networks:
- django_backend-net
env_file:
- ./env/django-mariadb.env
- ./env/mariadb.env
volumes:
- ./db/mysql:/var/lib/mysql
networks:
django_frontend-net:
name: django_frontend-net
django_backend-net:
name: django_backend-net