-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.vscode.yml
More file actions
87 lines (78 loc) · 3.61 KB
/
docker-compose.vscode.yml
File metadata and controls
87 lines (78 loc) · 3.61 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
# docker compose file for development with visual studio code
version: "3.8"
services:
backend:
#entrypoint: >
# /bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/mrmap/manage.py makemigrations accounts registry notify system"
# entrypoint: >
# /bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/mrmap/manage.py sync_pgviews --force"
# entrypoint: >
# /bin/bash -c "python /opt/mrmap/manage.py graph_models -a -g -o models.png"
# entrypoint: >
# /bin/bash -c "python -u -m debugpy --listen 0.0.0.0:5678
# /opt/mrmap/manage.py squashmigrations registry 0002"
# entrypoint: >
# /bin/bash -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/mrmap/manage.py migrate"
#entrypoint: >
# /bin/bash -c "python -u -m debugpy --listen 0.0.0.0:5678
# /opt/mrmap/manage.py loaddata test_users"
# entrypoint: >
# /bin/bash -c "python -u -m debugpy --listen 0.0.0.0:5678
# /opt/mrmap/manage.py dumpdata --natural-foreign --natural-primary registry
# > fixture.json"
command: >
/bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/mrmap/manage.py runserver 0.0.0.0:8001"
ports:
- "0.0.0.0:3001:5678"
- "0.0.0.0:8001:8001"
celery-worker:
# command: >
# /bin/sh -c "celery -A MrMap worker --task-events --loglevel DEBUG --queues download,default,db-routines --autoscale=10,1"
command: >
/bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 -m celery -A MrMap worker --task-events --loglevel DEBUG --queues download,default,db-routines --statedb=/var/run/celery/%n-%i_worker.state"
environment:
PYDEVD_LOAD_VALUES_ASYNC: "True"
PYTHONUNBUFFERED: "1"
IPYTHONENABLE: "True"
ports:
- "0.0.0.0:3002:5678"
celery-beat:
command: >
/bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/venv/bin/watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- celery -A MrMap beat --loglevel INFO --scheduler django"
environment:
PYDEVD_LOAD_VALUES_ASYNC: "True"
PYTHONUNBUFFERED: "1"
IPYTHONENABLE: "True"
#ports:
# - "0.0.0.0:3002:5678"
behave:
command: >
/bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/mrmap/manage.py behave --noinput --tags=~skip --no-skipped --stop tests/behave/features --simple"
ports:
- "0.0.0.0:3010:5678"
django-tests:
command: >
/bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/mrmap/manage.py test -v 3 --debug-mode tests/django/ --noinput"
#command: >
# /bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/mrmap/manage.py test -v 3 --debug-mode tests.django.registry.mrmap-proxy.tests_wms_proxy.WebMapServiceProxyTest.test_forbidden_exception_if_one_requested_layer_is_not_enabled --noinput"
# command: >
# /bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 -m coverage
# run --branch --source='/opt/mrmap' /opt/mrmap/manage.py test
# /opt/mrmap/tests/ --noinput && python -m coverage xml -i -o
# /opt/mrmap/unit-tests-coverage-report.xml"
ports:
- "0.0.0.0:3011:5678"
environment:
# explicitly override passed in environment variables. tests shall run without external services
# hierachy: image defaults --> docker client defaults from config.json -> env_file -> environment definition on compose level
#HTTP_PROXY: ""
#HTTPS_PROXY: ""
#http_proxy: ""
#https_proxy: ""
NO_PROXY: "127.0.0.1,localhost,mrmap-mapserver"
no_proxy: "127.0.0.1,localhost,mrmap-mapserver"
openobserve:
environment:
ZO_BASE_URI: ""
ports:
- "0.0.0.0:5080:5080"