This commit is contained in:
parent
5c2b0bedc0
commit
2bc8f85df1
8
config/config.yaml
Normal file
8
config/config.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
tunnel: 00000000-1111-2222-3333-444444444444
|
||||||
|
credentials-file: /home/nonroot/.cloudflared/00000000-1111-2222-3333-444444444444.json
|
||||||
|
logfile: /var/log/cloudflared.log
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
- hostname: whoami.tips-of-mine.com
|
||||||
|
service: http://whoami:7878
|
||||||
|
- service: http_status:404
|
@ -1,42 +1,23 @@
|
|||||||
#### NETWORKS
|
#### NETWORKS
|
||||||
networks:
|
#networks:
|
||||||
traefik_front_network:
|
# macvlan4:
|
||||||
external: true
|
# external: true
|
||||||
back_network_:
|
|
||||||
driver: bridge
|
|
||||||
attachable: true
|
|
||||||
|
|
||||||
#### SERVICES
|
#### SERVICES
|
||||||
services:
|
services:
|
||||||
### hello_world
|
tunnel:
|
||||||
hello_world:
|
container_name: cloudflared-tunnel
|
||||||
container_name: gitea-app
|
hostname: cloudflared-tunnel
|
||||||
hostname: gitea-app
|
image: cloudflare/cloudflared:latest
|
||||||
image: hello-world
|
restart: unless-stopped
|
||||||
environment:
|
command: tunnel run
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
# - back_network_gitea
|
|
||||||
- traefik_front_network
|
|
||||||
volumes:
|
volumes:
|
||||||
labels:
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
- "traefik.enable=true"
|
# - "./config:/home/nonroot/.cloudflared/"
|
||||||
- "traefik.docker.network=traefik_front_network"
|
# restart: always
|
||||||
# HTTP
|
environment:
|
||||||
- "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)"
|
- TZ=Europe/Paris
|
||||||
- "traefik.http.routers.hello-world-http.entrypoints=http"
|
- TUNNEL_TOKEN=000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
- "traefik.http.routers.hello-world-http.priority=49"
|
# networks:
|
||||||
# HTTPS
|
# macvlan4: # change name to whatever you like
|
||||||
- "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)"
|
# ipv4_address: 10.0.4.20 # change to your IP in your vLAN subnet
|
||||||
- "traefik.http.routers.hello-world-https.entrypoints=https"
|
|
||||||
- "traefik.http.routers.hello-world-https.tls=true"
|
|
||||||
- "traefik.http.routers.hello-world-https.priority=50"
|
|
||||||
- "traefik.http.routers.gitea.service=gitea-https-service"
|
|
||||||
# Middleware
|
|
||||||
# Service
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user