add fluentd logging to other containers
This commit is contained in:
@@ -27,3 +27,8 @@ services:
|
|||||||
cpus: '0.5'
|
cpus: '0.5'
|
||||||
memory: 96M
|
memory: 96M
|
||||||
|
|
||||||
|
logging:
|
||||||
|
driver: fluentd
|
||||||
|
options:
|
||||||
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
|
tag: gitea
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ services:
|
|||||||
LETSENCRYPT_HTTPS_ENABLED: "false"
|
LETSENCRYPT_HTTPS_ENABLED: "false"
|
||||||
LETSENCRYPT_TESTCERT: "false"
|
LETSENCRYPT_TESTCERT: "false"
|
||||||
LETSENCRYPT_DEBUG: "true"
|
LETSENCRYPT_DEBUG: "true"
|
||||||
LETSENCRYPT_JOB_TIME: "0 0 1 15 * *"
|
LETSENCRYPT_JOB_TIME: "0 0 1 */2 * *"
|
||||||
LETSENCRYPT_DOMAIN1: xai-corp.net
|
LETSENCRYPT_DOMAIN1: xai-corp.net
|
||||||
LETSENCRYPT_DOMAIN2: git.xai-corp.net
|
LETSENCRYPT_DOMAIN2: git.xai-corp.net
|
||||||
LETSENCRYPT_DOMAIN3: xaibox.xai-corp.net
|
LETSENCRYPT_DOMAIN3: xaibox.xai-corp.net
|
||||||
|
|||||||
@@ -19,12 +19,12 @@ services:
|
|||||||
# options:
|
# options:
|
||||||
# syslog-address: "tcp+tls://logs6.papertrailapp.com:38577"
|
# syslog-address: "tcp+tls://logs6.papertrailapp.com:38577"
|
||||||
# tag: "{{.Name}}/{{.ID}}"
|
# tag: "{{.Name}}/{{.ID}}"
|
||||||
#
|
|
||||||
# logging:
|
logging:
|
||||||
# driver: fluentd
|
driver: fluentd
|
||||||
# options:
|
options:
|
||||||
# fluentd-address: "logs.xai-corp.net:24224"
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
# tag: sslproxy
|
tag: sslproxy
|
||||||
|
|
||||||
# logging:
|
# logging:
|
||||||
# driver: syslog
|
# driver: syslog
|
||||||
@@ -34,10 +34,19 @@ services:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 3
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 10
|
max_attempts: 10
|
||||||
|
# update_config:
|
||||||
|
# parallelism: 2
|
||||||
|
# delay: 2s
|
||||||
|
# order: start-first
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '0.1'
|
||||||
|
memory: 16M
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
net.xai-corp.sslproxy.description: proxy ssl calls to non ssl containers
|
net.xai-corp.sslproxy.description: proxy ssl calls to non ssl containers
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# dkui.xai-corp.net
|
# dkui.xai-corp.net
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl ipv6only=off;
|
||||||
server_name dkui.xai-corp.net;
|
server_name dkui.xai-corp.net;
|
||||||
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# fs.xai-corp.net
|
# fs.xai-corp.net
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl ipv6only=off;
|
||||||
server_name fs.xai-corp.net;
|
server_name fs.xai-corp.net;
|
||||||
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# git.xai-corp.net
|
# git.xai-corp.net
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl ipv6only=off;
|
||||||
server_name git.xai-corp.net;
|
server_name git.xai-corp.net;
|
||||||
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# xaibox.xai-corp.net
|
# xaibox.xai-corp.net
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl ipv6only=off;
|
||||||
server_name xaibox.xai-corp.net;
|
server_name xaibox.xai-corp.net;
|
||||||
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
||||||
|
|||||||
@@ -30,3 +30,9 @@ services:
|
|||||||
cpus: '0.2'
|
cpus: '0.2'
|
||||||
memory: 16M
|
memory: 16M
|
||||||
|
|
||||||
|
|
||||||
|
logging:
|
||||||
|
driver: fluentd
|
||||||
|
options:
|
||||||
|
fluentd-address: "logs.xai-corp.net:24224"
|
||||||
|
tag: dkui
|
||||||
|
|||||||
Reference in New Issue
Block a user