2
0
mirror of https://github.com/offen/website.git synced 2024-12-23 13:30:20 +01:00

add production log config

This commit is contained in:
Frederik Ring 2019-11-04 23:08:44 +01:00
parent 9d01a0706d
commit cc9ea71f93
2 changed files with 23 additions and 13 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

@ -24,9 +24,9 @@
"logDriver": "awslogs",
"options": {
"awslogs-create-group": true,
"awslogs-group": "proxy",
"awslogs-group": "staging",
"awslogs-region": "eu-central-1",
"awslogs-stream-prefix": "staging"
"awslogs-stream-prefix": "proxy"
}
}
},
@ -43,9 +43,9 @@
"logDriver": "awslogs",
"options": {
"awslogs-create-group": true,
"awslogs-group": "server",
"awslogs-group": "staging",
"awslogs-region": "eu-central-1",
"awslogs-stream-prefix": "staging"
"awslogs-stream-prefix": "server"
}
}
}