-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathcompose.development.yaml
More file actions
70 lines (62 loc) · 1.94 KB
/
Copy pathcompose.development.yaml
File metadata and controls
70 lines (62 loc) · 1.94 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
services:
# terminate tls so we don't need to have exceptions in the nginx config file for development
port-expose:
image: nginx:1.27.3-alpine
networks:
- public-internet
- internal
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./port-expose/nginx_templates/:/etc/nginx/templates/
environment:
- INTERNETNL_DOMAINNAME
app:
develop:
watch:
# auto rebuild/reload when CSS/JS changes
- path: ../frontend/js
action: sync+exec
target: /app/frontend/js
exec:
command: python3 bin/frontend.py js
# 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
# watch CSS files for rebuild
cd /app/frontend;
npm run css:build:watch &
cd /app;
# start development server with auto reloading
./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
# mount CSS files so `css:build:watch` can detect changes an rebuild
- ../frontend/css:/app/frontend/css
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