@@ -18,7 +18,7 @@ services:
1818 memory: 300M
1919 cpus: "0.1"
2020 networks:
21- graylog :
21+ logging :
2222 aliases:
2323 - mongo # needed because of graylog configuration
2424
@@ -46,7 +46,7 @@ services:
4646 memory: 1G
4747 cpus: "0.1"
4848 networks:
49- graylog :
49+ logging :
5050 # Graylog: https://hub.docker.com/r/graylog/graylog/
5151 graylog:
5252 image: graylog/graylog:6.0.5
@@ -71,12 +71,18 @@ services:
7171 networks:
7272 public:
7373 monitoring:
74- graylog :
74+ logging :
7575 aliases:
7676 - graylog
7777 ports:
78- - 12201:12201/udp
79- - 12202:12202/udp
78+ - target: 12201
79+ published: 12203
80+ protocol: udp
81+ mode: host
82+ - target: 12202
83+ published: 12202
84+ protocol: udp
85+ mode: host
8086 deploy:
8187 replicas: 1
8288 restart_policy:
@@ -100,19 +106,23 @@ services:
100106 - traefik.http.middlewares.graylog_replace_regex.replacepathregex.replacement=/$${1}
101107 - traefik.http.routers.graylog.middlewares=ops_whitelist_ips@swarm, ops_gzip@swarm, graylog_replace_regex
102108 vector:
103- image: timberio/vector:0.49 .X-debian
109+ image: timberio/vector:0.50 .X-debian
104110 ports:
105- - "12200:12201/udp" # GELF input
111+ - target: 12201
112+ published: 12201
113+ protocol: udp
114+ mode: host
106115 volumes:
107116 - /var/run/docker.sock:/var/run/docker.sock:ro
108117 environment:
109118 - VECTOR_CONFIG=/etc/vector/vector.yaml
110119 - VECTOR_LOG=info
120+ - VECTOR_LOG_DESTINATION=${VECTOR_LOG_DESTINATION}
111121 configs:
112122 - source: vector_config
113123 target: /etc/vector/vector.yaml
114124 deploy:
115- replicas: 0
125+ replicas: 1
116126 resources:
117127 limits:
118128 cpus: "1.0"
@@ -121,11 +131,15 @@ services:
121131 memory: 256M
122132 labels: []
123133 networks:
124- - monitoring
125- - graylog
134+ logging:
126135
127136 loki:
128- image: grafana/loki:3.5.4
137+ image: grafana/loki:3.5.7
138+ ports:
139+ - target: 3100
140+ published: 12204
141+ protocol: tcp
142+ mode: host
129143 configs:
130144 - source: loki_config
131145 target: /etc/loki/loki.yaml
@@ -141,7 +155,7 @@ services:
141155 deploy:
142156 placement:
143157 constraints: []
144- replicas: 0
158+ replicas: 1
145159 restart_policy:
146160 condition: any
147161 delay: 5s
@@ -172,7 +186,7 @@ volumes:
172186 graylog_journal:
173187
174188networks:
175- graylog :
189+ logging :
176190 public:
177191 external: true
178192 name: ${PUBLIC_NETWORK}
0 commit comments