-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-local-traefik.yml
39 lines (38 loc) · 1.72 KB
/
docker-compose-local-traefik.yml
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
version: "3.9"
services:
# https://doc.traefik.io/traefik/user-guides/docker-compose/basic-example/#docker-compose-basic-example
traefik:
image: "docker.io/library/traefik:v2.9"
restart: on-failure
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web-$VITE_SERVER_PORT.address=:$VITE_SERVER_PORT"
- "--entrypoints.web-$VITE_DISCOVERY_SERVER_PUBLIC_PORT.address=:$VITE_DISCOVERY_SERVER_PUBLIC_PORT"
- "--entrypoints.web-$VITE_DISCOVERY_SERVER_WEBSOCKET_PUBLIC_PORT.address=:$VITE_DISCOVERY_SERVER_WEBSOCKET_PUBLIC_PORT"
- "--entrypoints.web-$VITE_ALWAYS_ONLINE_PEER_PUBLIC_PORT.address=:$VITE_ALWAYS_ONLINE_PEER_PUBLIC_PORT"
#- "--entrypoints.tcp-3478.address=:3478"
#- "--entrypoints.udp-3478.address=:3478/udp"
#- "--entrypoints.tcp-5349.address=:5349"
#- "--entrypoints.udp-5349.address=:5349/udp"
ports:
- target: "$VITE_SERVER_PORT"
published: "$VITE_SERVER_PORT"
- target: "$VITE_DISCOVERY_SERVER_PUBLIC_PORT"
published: "$VITE_DISCOVERY_SERVER_PUBLIC_PORT"
- target: "$VITE_DISCOVERY_SERVER_WEBSOCKET_PUBLIC_PORT"
published: "$VITE_DISCOVERY_SERVER_WEBSOCKET_PUBLIC_PORT"
- target: "$VITE_ALWAYS_ONLINE_PEER_PUBLIC_PORT"
published: "$VITE_ALWAYS_ONLINE_PEER_PUBLIC_PORT"
- target: 8080
published: 8080
volumes:
- "$XDG_RUNTIME_DIR/podman/podman.sock:/var/run/docker.sock:ro"
#whoami:
# image: "traefik/whoami"
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)"
# - "traefik.http.routers.whoami.entrypoints=web"