@@ -22,6 +22,7 @@ Codefresh includes a handy mechanism (based on Docker compose) that can help you
2222{% raw %}
2323version: "1.0"
2424services:
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 %}
7273version: "1.0"
7374services:
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 %}
147149version: "1.0"
148150services:
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 %}
541550version: '1.0'
542551services:
552+ version: '3.0'
543553 name: my_database
544554 shared_host_network: true
545555 composition: