-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathmu.yml
94 lines (78 loc) · 2.68 KB
/
mu.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
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
# Define parameters for a mu pipeline
# https://github.com/stelligent/mu/wiki/Pipelines
## See https://github.com/stelligent/mu/wiki/Environments
environments:
- name: test
### Attributes for the ECS container instances
cluster:
#### Name of EC2 keypair to associate with ECS container instances.
#### Launches bastion host if defined.
#### (default: none)
keyName: mu-wordpress
#### The instance type to use for the ECS container instances
#### (default: t2.micro)
instanceType: t2.micro
- name: prod
cluster:
keyName: mu-wordpress
instanceType: t2.small
## See https://github.com/stelligent/mu/wiki/Services
service:
name: mu-wordpress
### The desired number of tasks to run for the service
### (default: 2)
### We can't let this be anything other than "1" without establishing
### a shared PHP session management solution
desiredCount: 1
### The endpoint inside the container to determine if the task is healthy
### The default isn't going to be valid under WordPress
### (default: /health)
healthEndpoint: /robots.txt
### The port to expose from the container
### (default: 8080)
### - The WordPress web service runs on port 80
port: 80
### The paths to match on in the ALB and route to this service
### (default: None)
### - We want all traffic to be sent to the containers,
### but perhaps we can send media requests elsewhere?
pathPatterns:
- /*
### See https://github.com/stelligent/mu/wiki/Databases
database:
#### Name of database to create on RDS instance
name: muwp
#### RDS engine to use
#### (default: aurora)
#engine: mysql
#### Instance class
#### (default: db.t2.small)
#instanceClass: db.t2.small
### Environment variables exposed to the containers running in ECS
environment:
WORDPRESS_DB_USER: ${DatabaseMasterUsername}
WORDPRESS_DB_PASSWORD: ${DatabaseMasterPassword}
WORDPRESS_DB_HOST: ${DatabaseEndpointAddress}:${DatabaseEndpointPort}
WORDPRESS_DB_NAME: ${DatabaseName}
#### Define this for each environment if you want WP_DEBUG=true
#### in wp-config.php
WORDPRESS_DEBUG:
test: 'true'
prod:
### See https://github.com/stelligent/mu/wiki/Pipelines
pipeline:
source:
#### GitHub or CodeCommit
#### (default: GitHub)
provider: GitHub
#### The GitHub repo slug or CodeCommit repo name to build
#### (default: none)
repo: oshaughnessy/mu-wordpress
acceptance:
#### The environment name to deploy to for testing
#### (default: dev)
environment: test
production:
#### The environment name to deploy to for production
#### (default: production)
environment: prod