Show More
@@ -1,44 +1,44 b'' | |||
|
1 | 1 | version: '3.9' |
|
2 | 2 | |
|
3 | 3 | x-logging: &custom-logging |
|
4 | 4 | # docker plugin install grafana/loki-docker-driver:2.7.1 --alias loki --grant-all-permissions |
|
5 | 5 | # NOTE: loki logging driver ONLY works for host type networks... |
|
6 | 6 | driver: loki |
|
7 | 7 | options: |
|
8 | 8 | #loki-url: "http://${RC_LOKI_AUTH}loki:3100/loki/api/v1/push" |
|
9 | 9 | loki-url: "http://${RC_LOKI_AUTH}127.0.0.1:3100/loki/api/v1/push" |
|
10 | 10 | loki-retries: "5" |
|
11 | 11 | loki-timeout: "1s" |
|
12 | 12 | loki-max-backoff: "800ms" |
|
13 | 13 | |
|
14 | 14 | ## docker network create -d overlay lb-net |
|
15 | 15 | services: |
|
16 | 16 | |
|
17 | 17 | traefik: |
|
18 | 18 | restart: always |
|
19 | 19 | image: traefik:v2.9.6 |
|
20 | 20 | |
|
21 | 21 | ports: |
|
22 | 22 | # The HTTP port, exposed as http entrypoint |
|
23 | 23 | - "80:80" |
|
24 | 24 | # The HTTPS port, exposed as https entrypoint |
|
25 | 25 | - "443:443" |
|
26 | 26 | # The loki port, exposed as loki entrypoint behind auth |
|
27 | 27 | - "3100:3100" |
|
28 | 28 | # The SSH port exposed as sshd entrypoint, default 9022 |
|
29 | 29 | - "${RC_SSH_PORT:-9022}:${RC_SSH_PORT:-9022}" |
|
30 | 30 | volumes: |
|
31 | 31 | # So that Traefik can listen to the Docker events |
|
32 | 32 | - /var/run/docker.sock:/var/run/docker.sock |
|
33 | 33 | - ./config/traefik:/etc/traefik |
|
34 | 34 | - ./config/traefik/dynamic:/etc/traefik_dynamic |
|
35 | 35 | deploy: |
|
36 | 36 | placement: |
|
37 | 37 | constraints: |
|
38 | 38 | # limit swarm deploy to MANAGER only |
|
39 | 39 | - node.role == manager |
|
40 | 40 | networks: |
|
41 | 41 | - rhodecode_network |
|
42 | 42 | |
|
43 | logging: | |
|
44 | *custom-logging | |
|
43 | # logging: | |
|
44 | # *custom-logging |
General Comments 0
You need to be logged in to leave comments.
Login now