mirror of
https://github.com/offen/website.git
synced 2024-11-22 09:00:28 +01:00
add production log config
This commit is contained in:
parent
9d01a0706d
commit
cc9ea71f93
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user