-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.yaml
More file actions
49 lines (49 loc) · 1.78 KB
/
dev.yaml
File metadata and controls
49 lines (49 loc) · 1.78 KB
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
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"
# Disable the default timeouts from Træfik, as they can have negative consequences,
# like readTimeout stopping uploads after 60s by default.
- "--entryPoints.web.transport.respondingTimeouts.readTimeout=0s"
- "--entryPoints.web.transport.respondingTimeouts.writeTimeout=0s"
- "--entryPoints.web.transport.respondingTimeouts.idleTimeout=0s"
- "--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