-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.vscode.yml
71 lines (63 loc) · 2.88 KB
/
docker-compose.vscode.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
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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"
# 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 "
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 tests/django/ --noinput"
# /bin/sh -c "python -u -m debugpy --listen 0.0.0.0:5678 /opt/mrmap/manage.py test tests/django/registry/models/ --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"