-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathcompose.development.yaml
More file actions
92 lines (81 loc) · 2.54 KB
/
Copy pathcompose.development.yaml
File metadata and controls
92 lines (81 loc) · 2.54 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
# terminate tls so we don't need to have exceptions in the nginx config file for development
port-expose:
image: nginx:1.29.1-alpine3.22
networks:
- public-internet
- internal
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./port-expose/nginx_templates/:/etc/nginx/templates/
environment:
- INTERNETNL_DOMAINNAME
webserver:
build:
context: ..
dockerfile: docker/webserver.Dockerfile
develop:
watch:
# auto rebuild/reload when config files change
- path: ./webserver/
action: rebuild
volumes:
# mount monitoring credentials for testing/development
- ./webserver/dev.htpasswd:/etc/nginx/htpasswd/monitoring.htpasswd
app:
develop:
watch:
# auto rebuild/reload when CSS/JS changes
- path: ../frontend/
action: sync+exec
target: /app/frontend
exec:
command: /bin/sh -c "python3 bin/frontend.py js;python3 bin/frontend.py css;"
# use Django runserver for better debug abilities during development
entrypoint: ["/bin/bash"]
# run CSS auto rebuild in the background and start devserver
command:
- "-c"
- >
if [ "$INTERNETNL_AUTORELOAD" = "True" ]; then
./manage.py runserver 0.0.0.0:8080
else
./manage.py runserver 0.0.0.0:8080 --noreload
fi;
environment:
- INTERNETNL_AUTORELOAD
volumes:
- batch_results:/app/batch_results
# mount sources using volumes for quicker dev cycles
- ../checks:/app/checks
- ../interface:/app/interface
- ../internetnl:/app/internetnl
worker:
volumes:
- batch_results:/app/batch_results
# mount sources using volumes for quicker dev cycles
- ../checks:/app/checks
- ../interface:/app/interface
- ../internetnl:/app/internetnl
beat:
volumes:
# mount sources using volumes for quicker dev cycles
- ../checks:/app/checks
- ../interface:/app/interface
- ../internetnl:/app/internetnl
grafana:
develop:
watch:
# restart grafana when dashboards change
- path: ./grafana/provisioning/dashboards
action: restart
volumes:
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
networks:
public-internet:
driver_opts:
# development environments break connectivity when outgoing IP is set to the internal public IP
com.docker.network.host_ipv4: !reset null
com.docker.network.host_ipv6: !reset null