forked from codefreshdemo/cf-example-nodejs-angular2-mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodefresh.yml
43 lines (40 loc) · 1001 Bytes
/
codefresh.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
41
42
43
version: '1.0'
steps:
build_client:
type: build
description: codefresh example client
image_name: codefreshio/web-client
dockerfile: Dockerfile.client
working_directory: ${{main_clone}}
tag: ${{CF_BRANCH}}
build_server:
type: build
description: codefresh example server
image_name: codefreshio/web-server
dockerfile: Dockerfile.server
working_directory: ${{main_clone}}
tag: ${{CF_BRANCH}}
launch_composition:
type: launch-composition
environmentName: 'env-composition-example'
entry_point: client
composition:
version: '2'
services:
mongodb:
image: mongo
ports:
- 28017
server:
image: ${{build_server}}
environment:
- MONGO_URI=mongodb://mongodb/exampleDb
links:
- mongodb
ports:
- 9000
client:
image: ${{build_client}}
ports:
- 3000
- 443