|
|
@@ -1,12 +1,14 @@
|
|
|
---
|
|
|
-networks:
|
|
|
- frontend:
|
|
|
- external: true
|
|
|
+# -- (Optional) When using Traefik, use this section
|
|
|
+# networks:
|
|
|
+# your-traefik-network:
|
|
|
+# external: true
|
|
|
services:
|
|
|
teleport:
|
|
|
image: public.ecr.aws/gravitational/teleport-distroless:13
|
|
|
container_name: teleport
|
|
|
ports:
|
|
|
+ # -- (Optional) Remove this section, when using Traefik
|
|
|
- "3080:3080"
|
|
|
- "3023:3023"
|
|
|
- "3024:3024"
|
|
|
@@ -14,17 +16,19 @@ services:
|
|
|
volumes:
|
|
|
- ./config:/etc/teleport
|
|
|
- ./data:/var/lib/teleport
|
|
|
- labels: {}
|
|
|
- # -- (Optional) Traefik example configuration
|
|
|
- # traefik.enable: "true"
|
|
|
- # traefik.http.services.teleport.loadbalancer.server.port: "3080"
|
|
|
- # traefik.http.services.teleport.loadbalancer.server.scheme: "https"
|
|
|
- # traefik.http.routers.teleport-http.entrypoints: "web"
|
|
|
- # traefik.http.routers.teleport-http.rule: "Host(`your-server-url`)"
|
|
|
- # traefik.http.routers.teleport-https.entrypoints: "websecure"
|
|
|
- # traefik.http.routers.teleport-https.rule: "Host(`your-server-url`)"
|
|
|
- # traefik.http.routers.teleport-https.tls: "true"
|
|
|
- # traefik.http.routers.teleport-https.tls.certresolver: "your-certresolver"
|
|
|
- networks:
|
|
|
- - frontend
|
|
|
- restart: unless-stopped
|
|
|
+ # -- (Optional) Traefik example configuration
|
|
|
+ # labels:
|
|
|
+ # - "traefik.enable=true"
|
|
|
+ # - "traefik.http.services.teleport.loadbalancer.server.port=3080"
|
|
|
+ # - "traefik.http.services.teleport.loadbalancer.server.scheme=https"
|
|
|
+ # - "traefik.http.routers.teleport-http.entrypoints=web"
|
|
|
+ # - "traefik.http.routers.teleport-http.rule=HostRegexp(`your-server-url`, `{subhost:[a-z]+}.your-server-url`)"
|
|
|
+ # - "traefik.http.routers.teleport-https.entrypoints=websecure"
|
|
|
+ # - "traefik.http.routers.teleport-https.rule=HostRegexp(`your-server-url`, `{subhost:[a-z]+}.your-server-url`)"
|
|
|
+ # - "traefik.http.routers.teleport-https.tls=true"
|
|
|
+ # - "traefik.http.routers.teleport-https.tls.certresolver=your-certresolver"
|
|
|
+ # - "traefik.http.routers.teleport-https.tls.domains[0].main=your-server-url"
|
|
|
+ # - "traefik.http.routers.teleport-https.tls.domains[0].sans=*.your-server-url"
|
|
|
+ # networks:
|
|
|
+ # - your-traefik-network
|
|
|
+ restart: unless-stopped
|