You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With profiles, Compose files can define a set of active profiles so that started services are adjusted for various usages and environments.
295
295
You can specify the profiles to activate by setting the `quarkus.compose.devservices.profiles` property in the `application.properties` file:
296
296
297
-
[source, yaml]
297
+
[source, yaml, subs=attributes+]
298
298
----
299
299
services:
300
300
db:
301
-
image: postgres:17
301
+
image: {postgres-image}
302
302
profiles:
303
303
- dev
304
304
- local
@@ -319,11 +319,11 @@ services:
319
319
320
320
You can configure Compose Dev Services to not discover specific services by adding the `io.quarkus.devservices.compose.ignore` label to the service in your Compose file:
321
321
322
-
[source, yaml]
322
+
[source, yaml, subs=attributes+]
323
323
----
324
324
services:
325
325
db:
326
-
image: postgres:17
326
+
image: {postgres-image}
327
327
labels:
328
328
io.quarkus.devservices.compose.ignore: true
329
329
ports:
@@ -345,11 +345,11 @@ Compose Dev Services provides several ways to ensure services are ready before y
345
345
Compose Dev Services respects the health checks defined in your Compose file.
346
346
It's recommended to configure health checks for your services to ensure they are ready before your application tries to use them:
347
347
348
-
[source, yaml]
348
+
[source, yaml, subs=attributes+]
349
349
----
350
350
services:
351
351
db:
352
-
image: postgres:17
352
+
image: {postgres-image}
353
353
healthcheck:
354
354
test: pg_isready -U myuser -d mydb
355
355
interval: 5s
@@ -419,11 +419,11 @@ This property sets the maximum time to wait for all Dev Services to start. The d
419
419
Compose Dev Services starts services in the order they are defined in the Compose file.
420
420
If you need to start services in a specific order, you can use the `depends_on` attribute:
421
421
422
-
[source, yaml]
422
+
[source, yaml, subs=attributes+]
423
423
----
424
424
services:
425
425
db:
426
-
image: postgres:17
426
+
image: {postgres-image}
427
427
ports:
428
428
- '5432'
429
429
environment:
@@ -444,11 +444,11 @@ services:
444
444
Compose Dev Services automatically exposes the configuration of discovered services to your application.
445
445
For example, when a database service is discovered with the following compose service description:
0 commit comments