add fluentd logging to other containers

This commit is contained in:
2017-11-04 09:54:29 -04:00
parent 227a958f8e
commit 54f9550f10
8 changed files with 32 additions and 12 deletions

View File

@@ -27,3 +27,8 @@ services:
cpus: '0.5'
memory: 96M
logging:
driver: fluentd
options:
fluentd-address: "logs.xai-corp.net:24224"
tag: gitea

View File

@@ -20,7 +20,7 @@ services:
LETSENCRYPT_HTTPS_ENABLED: "false"
LETSENCRYPT_TESTCERT: "false"
LETSENCRYPT_DEBUG: "true"
LETSENCRYPT_JOB_TIME: "0 0 1 15 * *"
LETSENCRYPT_JOB_TIME: "0 0 1 */2 * *"
LETSENCRYPT_DOMAIN1: xai-corp.net
LETSENCRYPT_DOMAIN2: git.xai-corp.net
LETSENCRYPT_DOMAIN3: xaibox.xai-corp.net

View File

@@ -19,12 +19,12 @@ services:
# options:
# syslog-address: "tcp+tls://logs6.papertrailapp.com:38577"
# tag: "{{.Name}}/{{.ID}}"
#
# logging:
# driver: fluentd
# options:
# fluentd-address: "logs.xai-corp.net:24224"
# tag: sslproxy
logging:
driver: fluentd
options:
fluentd-address: "logs.xai-corp.net:24224"
tag: sslproxy
# logging:
# driver: syslog
@@ -34,10 +34,19 @@ services:
deploy:
mode: replicated
replicas: 1
replicas: 3
restart_policy:
condition: any
delay: 5s
max_attempts: 10
# update_config:
# parallelism: 2
# delay: 2s
# order: start-first
resources:
limits:
cpus: '0.1'
memory: 16M
labels:
net.xai-corp.sslproxy.description: proxy ssl calls to non ssl containers

View File

@@ -1,6 +1,6 @@
# dkui.xai-corp.net
server {
listen 443 ssl;
listen 443 ssl ipv6only=off;
server_name dkui.xai-corp.net;
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;

View File

@@ -1,6 +1,6 @@
# fs.xai-corp.net
server {
listen 443 ssl;
listen 443 ssl ipv6only=off;
server_name fs.xai-corp.net;
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;

View File

@@ -1,6 +1,6 @@
# git.xai-corp.net
server {
listen 443 ssl;
listen 443 ssl ipv6only=off;
server_name git.xai-corp.net;
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;

View File

@@ -1,6 +1,6 @@
# xaibox.xai-corp.net
server {
listen 443 ssl;
listen 443 ssl ipv6only=off;
server_name xaibox.xai-corp.net;
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;

View File

@@ -30,3 +30,9 @@ services:
cpus: '0.2'
memory: 16M
logging:
driver: fluentd
options:
fluentd-address: "logs.xai-corp.net:24224"
tag: dkui