Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7ecbc63

Browse files
feat: specify version in composition (codefresh-io#1115)
1 parent536a79a commit7ecbc63

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎_docs/pipelines/service-containers.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Codefresh includes a handy mechanism (based on Docker compose) that can help you
2222
{% raw %}
2323
version: "1.0"
2424
services:
25+
version: '3.0'
2526
name: my_database
2627
composition:
2728
my-redis-db-host:
@@ -71,6 +72,7 @@ Like Docker compose it is possible to launch multiple services this way. For exa
7172
{% raw %}
7273
version: "1.0"
7374
services:
75+
version: '3.0'
7476
name: my_extra_services
7577
composition:
7678
my-redis-db-host:
@@ -146,6 +148,7 @@ Notice that unlike compositions, the services defined in the root of the pipelin
146148
{% raw %}
147149
version: "1.0"
148150
services:
151+
version: '3.0'
149152
name: my_database
150153
composition:
151154
my-redis-db-host:
@@ -238,6 +241,7 @@ steps:
238241
commands:
239242
- 'echo start testing my app'
240243
services:
244+
version: '3.0'
241245
composition:
242246
my_mongo_Service:
243247
image: 'mongo:latest'
@@ -322,6 +326,7 @@ steps:
322326
- 'echo Backend is up. Starting tests'
323327
- npm run integration-test
324328
services:
329+
version: '3.0'
325330
composition:
326331
my_backend_app:
327332
image: '${{build_image}}'
@@ -368,6 +373,7 @@ steps:
368373
# Backend is certainly up at this point.
369374
- npm run integration-test
370375
services:
376+
version: '3.0'
371377
composition:
372378
my_backend_app:
373379
image: '${{build_image}}'
@@ -418,6 +424,7 @@ steps:
418424
- rails db:migrate
419425
- rails test
420426
services:
427+
version: '3.0'
421428
composition:
422429
my_postgresql_db:
423430
image: postgres:latest
@@ -464,6 +471,7 @@ steps:
464471
# PostgreSQL is certainly up at this point and has the correct data
465472
- rails test
466473
services:
474+
version: '3.0'
467475
composition:
468476
my_postgresql_db:
469477
image: postgres:latest
@@ -524,6 +532,7 @@ steps:
524532
- 'curlhttp://localhost:80'
525533
- echo finished
526534
services:
535+
version: '3.0'
527536
shared_host_network: true
528537
composition:
529538
my_redis_service:
@@ -540,6 +549,7 @@ You can also do the same thing with top level services:
540549
{% raw %}
541550
version: '1.0'
542551
services:
552+
version: '3.0'
543553
name: my_database
544554
shared_host_network: true
545555
composition:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp