-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
151 lines (145 loc) · 5.71 KB
/
docker-compose.dev.yml
File metadata and controls
151 lines (145 loc) · 5.71 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2025-Present Datadog, Inc.
# Docker Compose override for development mode
# Usage: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
sticker-catalogue:
build:
context: ./sticker-catalogue
dockerfile: src/main/docker/Dockerfile.dev
volumes:
# Mount source code for live reload
- ./sticker-catalogue:/work:cached
# Mount Maven cache to speed up builds
- maven-cache:/root/.m2
environment:
# DataDog APM configuration
- DD_SERVICE=sticker-catalogue
- DD_ENV=development
- DD_VERSION=${COMMIT_SHA:-dev}
- DD_AGENT_HOST=datadog-agent
- DD_DATA_STREAMS_ENABLED=true
- DD_TRACE_REMOVE_INTEGRATION_SERVICE_NAMES_ENABLED=true
# Use development profile
- QUARKUS_PROFILE=dev
# Override any production settings
- QUARKUS_HTTP_HOST=0.0.0.0
# Disable all dev services - use external containers instead
- QUARKUS_DEVSERVICES_ENABLED=false
- QUARKUS_DATASOURCE_DEVSERVICES_ENABLED=false
- QUARKUS_KAFKA_DEVSERVICES_ENABLED=false
- QUARKUS_S3_DEVSERVICES_ENABLED=false
# Database configuration
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://sticker-catalogue-db:5432/sticker_catalogue
- QUARKUS_DATASOURCE_USERNAME=sticker_user
- QUARKUS_DATASOURCE_PASSWORD=sticker_password
- QUARKUS_DATASOURCE_DB_KIND=postgresql
# Kafka configuration
- KAFKA_BOOTSTRAP_SERVERS=kafka:9092
- MP_MESSAGING_CONNECTOR_SMALLRYE_KAFKA_BOOTSTRAP_SERVERS=kafka:9092
- QUARKUS_KAFKA_STREAMS_BOOTSTRAP_SERVERS=kafka:9092
# S3/MinIO configuration
- QUARKUS_S3_ENDPOINT_OVERRIDE=http://minio:9000
- QUARKUS_S3_AWS_REGION=us-east-1
- QUARKUS_S3_AWS_CREDENTIALS_TYPE=static
- QUARKUS_S3_AWS_CREDENTIALS_STATIC_PROVIDER_ACCESS_KEY_ID=minioadmin
- QUARKUS_S3_AWS_CREDENTIALS_STATIC_PROVIDER_SECRET_ACCESS_KEY=minioadmin
- QUARKUS_S3_PATH_STYLE_ACCESS=true
- STICKER_IMAGES_BUCKET=sticker-images
# Enable live reload and debugging
- QUARKUS_LIVE_RELOAD_INSTRUMENTATION=true
- QUARKUS_DEBUG_ENABLED=true
- QUARKUS_DEBUG_HOST=0.0.0.0
- QUARKUS_DEBUG_PORT=5005
ports:
# Expose debug port for remote debugging
- "5005:5005"
command: ["./mvnw", "quarkus:dev", "-Dquarkus.http.host=0.0.0.0", "-Dquarkus.devservices.enabled=false"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.sticker-catalogue.rule=PathPrefix(`/api/stickers`)"
- "traefik.http.services.sticker-catalogue.loadbalancer.server.port=8080"
sticker-award:
# Development configuration: use hot-reload Dockerfile and bind-mount source
build:
context: ./sticker-award
dockerfile: Dockerfile.dev
environment:
# DataDog APM configuration
- DD_SERVICE=sticker-award
- DD_ENV=development
- DD_VERSION=${COMMIT_SHA:-dev}
- DD_AGENT_HOST=datadog-agent
- DD_DATA_STREAMS_ENABLED=true
- DD_TRACE_REMOVE_INTEGRATION_SERVICE_NAMES_ENABLED=true
volumes:
- ./sticker-award:/app:cached # Live code reload
- go-mod-cache:/go/pkg/mod # Persist Go module cache
command: ["air", "-c", ".air.toml"]
# user-management doesn't run in hot reload mode yet!
# commented out so we fall back to the non-reloading service in docker-compose.yml
# user-management:
# build:
# context: ./user-management
# dockerfile: Dockerfile.dev
# volumes:
# # Mount source code for live reload
# - ./user-management:/app:cached
# # Mount NuGet cache to speed up builds
# - nuget-cache:/root/.nuget/packages
# environment:
# # DataDog APM configuration
# - DD_SERVICE=user-management
# - DD_ENV=development
# - DD_VERSION=${COMMIT_SHA:-dev}
# - DD_AGENT_HOST=host.docker.internal
# # Configure driven adapters
# - DRIVEN=AGNOSTIC
# # Development environment
# - ASPNETCORE_ENVIRONMENT=Development
# - ASPNETCORE_URLS=http://+:8080
# extra_hosts:
# - "host.docker.internal:host-gateway"
web-backend:
environment:
# DataDog APM configuration
- DD_SERVICE=web-backend
- DD_ENV=development
- DD_VERSION=${COMMIT_SHA:-dev}
- DD_AGENT_HOST=datadog-agent
web-frontend:
# platform: linux/amd64 # Force x86-64 to avoid ARM64 rollup issues
build:
context: ./web-frontend
dockerfile: Dockerfile.dev
volumes:
# Mount source code for live reload
- ./web-frontend:/app:cached
# Mount node modules over the top, so that modules from the host don't get used
# this is necessary for platform-specific modules.
- web-frontend-node-modules-cache:/app/node_modules:cached
# Mount npm cache to speed up builds
- npm-cache:/root/.npm
environment:
# Vite configuration for development
- VITE_API_BASE_URL=http://localhost:8080
- NODE_ENV=
# Datadog RUM configuration (runtime injection via vite-envs)
- DD_RUM_APPLICATION_ID=${DD_RUM_APPLICATION_ID}
- DD_RUM_CLIENT_TOKEN=${DD_RUM_CLIENT_TOKEN}
- DD_SITE=${DD_SITE:-datadoghq.eu}
- DD_ENV=development
- DD_VERSION=${COMMIT_SHA:-dev}
- DD_SERVICE=web-frontend
labels:
- "traefik.enable=true"
- "traefik.http.routers.web-frontend.rule=PathPrefix(`/`)"
- "traefik.http.routers.web-frontend.priority=1"
- "traefik.http.services.web-frontend.loadbalancer.server.port=8080"
volumes:
maven-cache:
go-mod-cache:
nuget-cache:
npm-cache:
web-frontend-node-modules-cache: