-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathdocker-compose.override.local.yml
58 lines (53 loc) · 2 KB
/
docker-compose.override.local.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
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
app:
build:
args:
- DEBUG_BUILD=1
ports:
# allow direct access without nginx
- ${DJANGO_DEV_PORT}:8000
- ${DEBUG_DEBUGPY_APP_PORT:-5678}:5678
volumes:
# mount the source for live reload
- ./docker-app/qfieldcloud:/usr/src/app/qfieldcloud
command: python3 -m debugpy --listen 0.0.0.0:5678 manage.py runserver 0.0.0.0:8000
depends_on:
- db
pipcompile: &default-django
build:
context: ./docker-app
target: build
network: host
profiles:
- donotstart
volumes:
# mount the source for live reload
- ./docker-app/requirements:/requirements
command: bash -c 'for f in /requirements/*.in; do pip-compile --no-strip-extras -o "$${f%.in}.txt" "$$f"; done'
worker_wrapper:
scale: ${QFIELDCLOUD_WORKER_REPLICAS}
build:
args:
- DEBUG_BUILD=1
ports:
- ${DEBUG_DEBUGPY_WORKER_WRAPPER_PORT:-5679}:5679
environment:
QFIELDCLOUD_LIBQFIELDSYNC_VOLUME_PATH: ${QFIELDCLOUD_LIBQFIELDSYNC_VOLUME_PATH}
QFIELDCLOUD_QFIELDCLOUD_SDK_VOLUME_PATH: ${QFIELDCLOUD_QFIELDCLOUD_SDK_VOLUME_PATH}
volumes:
# mount the source for live reload
- ./docker-app/qfieldcloud:/usr/src/app/qfieldcloud
- ./docker-app/worker_wrapper:/usr/src/app/worker_wrapper
command: python3 -m debugpy --listen 0.0.0.0:5679 manage.py dequeue
memcached:
ports:
- "${MEMCACHED_PORT}:11211"
qgis:
volumes:
# allow local development for `docker-qgis`
- ./docker-qgis/qfc_worker:/usr/src/qfc_worke:ro
- ./docker-qgis/entrypoint.py:/usr/src/entrypoint.py:ro
# allow local development for `libqfieldsync` if host directory present; requires `PYTHONPATH=/libqfieldsync:${PYTHONPATH}`
- ./docker-qgis/libqfieldsync:/libqfieldsync:ro
# allow local development for `qfieldcloud-sdk-python` if host directory present; requires `PYTHONPATH=/qfieldcloud-sdk-python:${PYTHONPATH}`
- ./docker-qgis/qfieldcloud-sdk-python:/qfieldcloud-sdk-python:ro