-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlifecycle.yaml
More file actions
100 lines (95 loc) · 2.5 KB
/
lifecycle.yaml
File metadata and controls
100 lines (95 loc) · 2.5 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Copyright 2025 GoodRx, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
environment:
autoDeploy: true
defaultServices:
- name: "frontend"
- name: "backend"
optionalServices:
- name: "cache"
services:
- name: "frontend"
defaultUUID: "dev-0"
github:
repository: 'GoodRxOSS/lifecycle-examples'
branchName: 'main'
docker:
builder:
engine: 'buildkit'
defaultTag: 'main'
app:
dockerfilePath: 'Dockerfile.frontend'
ports:
- 3000
env:
COMPONENT: "app"
ENV: "lifecycle"
API_URL: "https://{{{backend_publicUrl}}}"
CACHE_URL: "{{{cache_internalHostname}}}"
WES_IS: "GOAT"
deployment:
public: true
readiness:
tcpSocketPort: 3000
hostnames:
defaultInternalHostname: 'frontend-dev-0'
- name: "backend"
requires:
- name: "db"
defaultUUID: "dev-0"
docker:
dockerImage: "lifecycleoss/example-backend"
defaultTag: "0.1.0"
ports:
- 8080
env:
COMPONENT: "server"
ENV: "lifecycle"
DATABASE_URL: "{{{db_internalHostname}}}"
DATABASE_PORT: "5432"
deployment:
public: true
readiness:
tcpSocketPort: 8080
- name: "db"
defaultUUID: "dev-0"
docker:
dockerImage: "lifecycleoss/example-db"
defaultTag: "0.1.0"
ports:
- 5432
env:
COMPONENT: "db"
ENV: "lifecycle"
POSTGRES_DB: tasks
POSTGRES_USER: lifecycle
POSTGRES_PASSWORD: mysecretpassword
deployment:
public: false
readiness:
tcpSocketPort: 5432
- name: "cache"
defaultUUID: "dev-0"
docker:
dockerImage: "redis"
defaultTag: "8.0.2"
ports:
- 6379
env:
COMPONENT: "cache"
ENV: "lifecycle"
deployment:
public: false
readiness:
tcpSocketPort: 6379