2
0
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:
Frederik Ring 2019-11-04 23:22:56 +01:00 committed by GitHub
commit cdadf8d0af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 11 deletions

View File

@ -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"
}
}
}
]
}

View File

@ -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"
}
}
}
]
}