mirror of
https://github.com/offen/website.git
synced 2024-11-22 01:00:26 +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
|
||||
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_size = 2
|
||||
|
||||
|
@ -1,6 +1,13 @@
|
||||
{
|
||||
"AWSEBDockerrunVersion": 2,
|
||||
"volumes": [],
|
||||
"volumes": [
|
||||
{
|
||||
"name": "log-socket",
|
||||
"host": {
|
||||
"sourcePath": "/var/run/docker.sock"
|
||||
}
|
||||
}
|
||||
],
|
||||
"containerDefinitions": [
|
||||
{
|
||||
"name": "proxy",
|
||||
@ -26,6 +33,19 @@
|
||||
"image": "offen/server:stable",
|
||||
"essential": true,
|
||||
"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