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