mirror of
https://github.com/offen/website.git
synced 2024-12-27 06:50:22 +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,
|
"AWSEBDockerrunVersion": 2,
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "log-socket",
|
|
||||||
"host": {
|
|
||||||
"sourcePath": "/var/run/docker.sock"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containerDefinitions": [
|
"containerDefinitions": [
|
||||||
{
|
{
|
||||||
"name": "proxy",
|
"name": "proxy",
|
||||||
@ -27,6 +19,15 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"links": ["server"]
|
"links": ["server"]
|
||||||
|
"logConfiguration": {
|
||||||
|
"logDriver": "awslogs",
|
||||||
|
"options": {
|
||||||
|
"awslogs-create-group": true,
|
||||||
|
"awslogs-group": "production",
|
||||||
|
"awslogs-region": "eu-central-1",
|
||||||
|
"awslogs-stream-prefix": "proxy"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "server",
|
"name": "server",
|
||||||
@ -36,7 +37,16 @@
|
|||||||
"command": ["serve"],
|
"command": ["serve"],
|
||||||
"environment": [
|
"environment": [
|
||||||
{ "name": "OFFEN_SERVER_REVERSEPROXY", "value": "1" }
|
{ "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"
|
"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",
|
"name": "server",
|
||||||
@ -29,7 +38,16 @@
|
|||||||
"command": ["serve"],
|
"command": ["serve"],
|
||||||
"environment": [
|
"environment": [
|
||||||
{ "name": "OFFEN_SERVER_REVERSEPROXY", "value": "1" }
|
{ "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