-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.yaml
44 lines (44 loc) · 1.41 KB
/
dev.yaml
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
services:
django:
command: ./manage.py runserver django:8000
read_only: false
develop:
watch:
- action: sync
path: ${WATCH_RELATIVE_ROOT:-.}/${DJANGO_ROOT}
target: /srv
ignore:
- ${WATCH_RELATIVE_ROOT:-.}/${DJANGO_ROOT}/requirements/
- ${WATCH_RELATIVE_ROOT:-.}/${DJANGO_ROOT}/nginx_templates/
- action: rebuild
path: ${WATCH_RELATIVE_ROOT:-.}/${DJANGO_ROOT}/requirements
nginx:
labels:
- traefik.http.routers.$PROJECT-nginx.entrypoints=web
develop:
watch:
- action: rebuild
path: ${WATCH_RELATIVE_ROOT:-.}/${NGINX_ROOT}
- action: rebuild
path: ${WATCH_RELATIVE_ROOT:-.}/${DJANGO_ROOT}/nginx_templates
traefik:
command:
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=traefik"
- "--entrypoints.web.address=:80"
- "--entrypoints.traefik.address=:8080"
ports:
- "8080:8080"
labels:
# Configures the Traefik dashboard to be displayed on DOMAIN:8080/dashboard/
traefik.enable: true
traefik.http.routers.traefik.rule: Host(`$DOMAIN`)
traefik.http.routers.traefik.service: api@internal
traefik.http.routers.traefik.entrypoints: traefik
fail2ban:
develop:
watch:
- action: rebuild
path: ./fail2ban