File tree Expand file tree Collapse file tree 3 files changed +26
-4
lines changed
sample-applications/vehicle-dealership-sample-app Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,13 @@ services:
28
28
context : .
29
29
dockerfile : VehicleInventoryApp/Dockerfile
30
30
container_name : vehicle-inventory-backend
31
- command : sh -c "python3 manage.py migrate --noinput && python3 manage.py collectstatic --noinput && python3 manage.py runserver 0.0.0.0:8001"
31
+ command : sh -c "python3 manage.py migrate --noinput && python3 manage.py collectstatic --noinput && python3 manage.py runserver 0.0.0.0:8001 --noreload "
32
32
restart : always
33
33
volumes :
34
34
- ./VehicleInventoryApp/.:/vehicle-inventory-app
35
+ environment :
36
+ DJANGO_SETTINGS_MODULE : " VehicleInventoryApp.settings"
37
+ OTEL_TRACES_SAMPLER : " always_on"
35
38
ports :
36
39
- " 8001:8001"
37
40
depends_on :
@@ -44,11 +47,14 @@ services:
44
47
context : .
45
48
dockerfile : ImageServiceApp/Dockerfile
46
49
container_name : image-service-backend
47
- command : sh -c "python3 manage.py runserver 0.0.0.0:8000"
50
+ command : sh -c "python3 manage.py runserver 0.0.0.0:8000 --noreload "
48
51
restart : always
49
52
volumes :
50
53
- ./ImageServiceApp/.:/image-service-app
51
54
- $HOME/.aws/credentials:/home/app/.aws/credentials:ro
55
+ environment :
56
+ DJANGO_SETTINGS_MODULE : " ImageServiceApp.settings"
57
+ OTEL_TRACES_SAMPLER : " always_on"
52
58
ports :
53
59
- " 8000:8000"
54
60
depends_on :
Original file line number Diff line number Diff line change 22
22
annotations :
23
23
kompose.cmd : kompose convert -f docker-compose.yaml
24
24
kompose.version : 1.31.2 (HEAD)
25
+ instrumentation.opentelemetry.io/inject-python : " true"
25
26
creationTimestamp : null
26
27
labels :
27
28
io.kompose.network/vehicleinventoryapp-default : " true"
31
32
- args :
32
33
- sh
33
34
- -c
34
- - python3 manage.py migrate --noinput && python3 manage.py collectstatic --noinput && python3 manage.py runserver 0.0.0.0:8001
35
+ - python3 manage.py migrate --noinput && python3 manage.py collectstatic --noinput && python3 manage.py runserver 0.0.0.0:8001 --noreload
35
36
image : ${REPOSITORY_PREFIX}/pythonsampleapp/vehicle-inventory-service:latest
36
37
name : vehicle-inventory-backend
37
38
env :
41
42
value : ${POSTGRES_PASSWORD}
42
43
- name : POSTGRES_USER
43
44
value : djangouser
45
+ - name : PYTHONPATH
46
+ value : " /vehicle-inventory-app"
47
+ - name : DJANGO_SETTINGS_MODULE
48
+ value : " VehicleInventoryApp.settings"
49
+ # TODO: Remove OTEL_TRACES_SAMPLER when XRay trace sampler is ready
50
+ - name : OTEL_TRACES_SAMPLER
51
+ value : " always_on"
44
52
imagePullPolicy : Always
45
53
ports :
46
54
- containerPort : 8001
Original file line number Diff line number Diff line change 22
22
annotations :
23
23
kompose.cmd : Kompose convert -f docker-compose.yaml
24
24
kompose.version : 1.31.2 (HEAD)
25
+ instrumentation.opentelemetry.io/inject-python : " true"
25
26
creationTimestamp : null
26
27
labels :
27
28
io.kompose.network/imageserviceapp-default : " true"
31
32
- args :
32
33
- sh
33
34
- -c
34
- - python3 manage.py runserver 0.0.0.0:8000
35
+ - python3 manage.py runserver 0.0.0.0:8000 --noreload
35
36
image : ${REPOSITORY_PREFIX}/pythonsampleapp/image-service:latest
36
37
name : image-service-backend
37
38
imagePullPolicy : Always
49
50
value : ${POSTGRES_PASSWORD}
50
51
- name : POSTGRES_USER
51
52
value : djangouser
53
+ - name : PYTHONPATH
54
+ value : " /image-service-app"
55
+ - name : DJANGO_SETTINGS_MODULE
56
+ value : " ImageServiceApp.settings"
57
+ # TODO: Remove OTEL_TRACES_SAMPLER when XRay trace sampler is ready
58
+ - name : OTEL_TRACES_SAMPLER
59
+ value : " always_on"
52
60
restartPolicy : Always
53
61
status : {}
You can’t perform that action at this time.
0 commit comments