mirror of
https://github.com/offen/website.git
synced 2024-11-22 17:10:29 +01:00
add production log config
This commit is contained in:
parent
9d01a0706d
commit
cc9ea71f93
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
"logDriver": "awslogs",
|
"logDriver": "awslogs",
|
||||||
"options": {
|
"options": {
|
||||||
"awslogs-create-group": true,
|
"awslogs-create-group": true,
|
||||||
"awslogs-group": "proxy",
|
"awslogs-group": "staging",
|
||||||
"awslogs-region": "eu-central-1",
|
"awslogs-region": "eu-central-1",
|
||||||
"awslogs-stream-prefix": "staging"
|
"awslogs-stream-prefix": "proxy"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -43,9 +43,9 @@
|
|||||||
"logDriver": "awslogs",
|
"logDriver": "awslogs",
|
||||||
"options": {
|
"options": {
|
||||||
"awslogs-create-group": true,
|
"awslogs-create-group": true,
|
||||||
"awslogs-group": "server",
|
"awslogs-group": "staging",
|
||||||
"awslogs-region": "eu-central-1",
|
"awslogs-region": "eu-central-1",
|
||||||
"awslogs-stream-prefix": "staging"
|
"awslogs-stream-prefix": "server"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user