mirror of
https://github.com/offen/website.git
synced 2024-12-26 14:50:20 +01:00
Merge pull request #16 from offen/development
Use Cloudwatch for application logging
This commit is contained in:
commit
cdadf8d0af
@ -1,13 +1,5 @@
|
||||
{
|
||||
"AWSEBDockerrunVersion": 2,
|
||||
"volumes": [
|
||||
{
|
||||
"name": "log-socket",
|
||||
"host": {
|
||||
"sourcePath": "/var/run/docker.sock"
|
||||
}
|
||||
}
|
||||
],
|
||||
"containerDefinitions": [
|
||||
{
|
||||
"name": "proxy",
|
||||
@ -27,6 +19,15 @@
|
||||
}
|
||||
],
|
||||
"links": ["server"]
|
||||
"logConfiguration": {
|
||||
"logDriver": "awslogs",
|
||||
"options": {
|
||||
"awslogs-create-group": true,
|
||||
"awslogs-group": "production",
|
||||
"awslogs-region": "eu-central-1",
|
||||
"awslogs-stream-prefix": "proxy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "server",
|
||||
@ -36,7 +37,16 @@
|
||||
"command": ["serve"],
|
||||
"environment": [
|
||||
{ "name": "OFFEN_SERVER_REVERSEPROXY", "value": "1" }
|
||||
]
|
||||
],
|
||||
"logConfiguration": {
|
||||
"logDriver": "awslogs",
|
||||
"options": {
|
||||
"awslogs-create-group": true,
|
||||
"awslogs-group": "production",
|
||||
"awslogs-region": "eu-central-1",
|
||||
"awslogs-stream-prefix": "server"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -19,7 +19,16 @@
|
||||
"condition": "START"
|
||||
}
|
||||
],
|
||||
"links": ["server"]
|
||||
"links": ["server"],
|
||||
"logConfiguration": {
|
||||
"logDriver": "awslogs",
|
||||
"options": {
|
||||
"awslogs-create-group": true,
|
||||
"awslogs-group": "staging",
|
||||
"awslogs-region": "eu-central-1",
|
||||
"awslogs-stream-prefix": "proxy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "server",
|
||||
@ -29,7 +38,16 @@
|
||||
"command": ["serve"],
|
||||
"environment": [
|
||||
{ "name": "OFFEN_SERVER_REVERSEPROXY", "value": "1" }
|
||||
]
|
||||
],
|
||||
"logConfiguration": {
|
||||
"logDriver": "awslogs",
|
||||
"options": {
|
||||
"awslogs-create-group": true,
|
||||
"awslogs-group": "staging",
|
||||
"awslogs-region": "eu-central-1",
|
||||
"awslogs-stream-prefix": "server"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user