mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-25 00:19:19 +01:00
35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
---
|
|
# -- (Optional) When using Traefik, use this section
|
|
# networks:
|
|
# your-traefik-network:
|
|
# external: true
|
|
services:
|
|
teleport:
|
|
image: public.ecr.aws/gravitational/teleport-distroless:15
|
|
container_name: teleport
|
|
ports:
|
|
# -- (Optional) Remove this section, when using Traefik
|
|
- "3080:3080"
|
|
- "3023:3023"
|
|
- "3024:3024"
|
|
- "3025:3025"
|
|
volumes:
|
|
- ./config:/etc/teleport
|
|
- ./data:/var/lib/teleport
|
|
# -- (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
|