forked from Skill17-WebTechnologies/competition-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtraefik.yaml
More file actions
40 lines (39 loc) · 1.35 KB
/
traefik.yaml
File metadata and controls
40 lines (39 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
traefik:
image: traefik:v2.11.0
container_name: traefik
restart: unless-stopped
networks:
- gitea
- default
command:
- '--log.level=DEBUG'
- '--api.insecure=true'
- '--providers.file.directory=/etc/traefik/dynamic'
- '--providers.docker=true'
- '--providers.docker.exposedbydefault=false'
- '--entrypoints.web.address=:80'
# - '--entrypoints.websecure.address=:443'
- '--entrypoints.websecure.address=:${REGISTRY_PORT}'
# - '--providers.docker.defaultRule=HostRegexp(`{_:{{ index .Labels \"com.docker.compose.service\" }}\\..*}`)'
- '--providers.docker.defaultRule=HostRegexp(`{host:.+}`)'
- '--serversTransport.insecureSkipVerify=true'
ports:
- '80:80'
- '443:443'
- '5000:5000'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- './letsencrypt:/letsencrypt'
- './config/traefik/config.yaml:/etc/traefik/dynamic/traefik.yaml'
- './config/traefik/certs:/etc/certs/'
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`${GITEA_HOSTNAME}`)"
- "traefik.http.routers.traefik.entrypoints=websecure"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
networks:
gitea:
name: gitea
driver: bridge