mirror of
https://github.com/offen/website.git
synced 2024-11-22 09:00:28 +01:00
add logspout container to production setup
This commit is contained in:
parent
9d59aa0527
commit
929079e360
@ -10,7 +10,7 @@ insert_final_newline = true
|
|||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
[{*.js,*.yml,*.md,Gopkg.toml,package.json,*.html,Dockerfile.*}]
|
[{*.js,*.yml,*.md,Gopkg.toml,package.json,*.html,Dockerfile.*,Dockerrun.*}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
{
|
{
|
||||||
"AWSEBDockerrunVersion": 2,
|
"AWSEBDockerrunVersion": 2,
|
||||||
"volumes": [],
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "log-socket",
|
||||||
|
"host": {
|
||||||
|
"sourcePath": "/var/run/docker.sock"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"containerDefinitions": [
|
"containerDefinitions": [
|
||||||
{
|
{
|
||||||
"name": "proxy",
|
"name": "proxy",
|
||||||
@ -26,6 +33,19 @@
|
|||||||
"image": "offen/server:stable",
|
"image": "offen/server:stable",
|
||||||
"essential": true,
|
"essential": true,
|
||||||
"memory": 256
|
"memory": 256
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "logspout",
|
||||||
|
"image": "gliderlabs/logspout:latest",
|
||||||
|
"essential": true,
|
||||||
|
"memory": 64,
|
||||||
|
"command": ["syslog+tls://$LOG_TARGET"],
|
||||||
|
"mountPoints": [
|
||||||
|
{
|
||||||
|
"sourceVolume": "log-socket",
|
||||||
|
"containerPath": "/var/run/docker.sock"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user