-
Notifications
You must be signed in to change notification settings - Fork 3
/
codefresh.yml
44 lines (38 loc) · 939 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_prj:
type: build
description: codefresh example
image_name: codefreshio/express-angular-mongo
dockerfile: Dockerfile
tag: ${{CF_BRANCH}}
mongo_seed:
type: build
image_name: codefreshio/mongo_seed
dockerfile: Dockerfile
working_directory: ${{main_clone}}/mongo-seed
tag: ${{CF_BRANCH}}
launch_composition:
type: launch-composition
environmentName: 'env-composition-example'
entry_point: client
composition:
version: '2'
services:
mongodb:
image: mongo
command: mongod --smallfiles
ports:
- 27017
mongo_seed:
image: ${{mongo_seed}}
links:
- mongodb
client:
image: ${{build_prj}}
links:
- mongodb
ports:
- 9000
environment:
- MONGO_URI=mongodb:27017/exampleDb