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