-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-dev.yml
40 lines (38 loc) · 1.31 KB
/
docker-compose-dev.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
# This config connects with the Pocket-Dev environment for local development.
services:
app_dev:
build:
dockerfile: .docker/images/app/Dockerfile
context: .
env_file:
- .docker/local-dev.env
- .env
environment:
- OTEL_SERVICE_NAME=RecommendationAPI
command: /start-reload.sh # Only for development. Reloads Gunicorn when source changes.
healthcheck:
disable: true # Disable healthcheck for local development.
ports:
- "8000:8000"
volumes:
- "~/.aws:/home/appuser/.aws:ro"
- "./app:/app:ro"
- "./app:/opt/project/src:ro" # PyCharm overrides app to /opt/project/src
depends_on:
- aws-ot-collector
# AWS Distro for OpenTelemetry (ADOT) Collector for sending traces to AWS X-Ray
aws-ot-collector:
image: public.ecr.aws/aws-observability/aws-otel-collector:latest
command: [
# aws-otel-collector comes packaged with several configuration files:
# https://github.com/aws-observability/aws-otel-collector/tree/main/config/ecs
"--config=/etc/ecs/ecs-default-config.yaml"
]
environment:
- AWS_REGION=us-east-1
- AWS_PROFILE=pocket-dev-PocketSSODataLearning
volumes:
- "~/.aws:/root/.aws"
ports:
- "4317:4317" # grcp port for receiving spans
- "13133" # health_check