mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-25 01:34:36 +01:00
35 lines
1.5 KiB
YAML
35 lines
1.5 KiB
YAML
---
|
|
# -- (Optional) When using Traefik, use this section
|
|
# networks:
|
|
# your-traefik-network:
|
|
# external: true
|
|
services:
|
|
teleport:
|
|
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
|
|
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(`^(?i)(?:[[:alnum:]]+(?:-+[[:alnum:]]+)*\\.)?your-server-url(?::\\d+)?$`)"
|
|
# - "traefik.http.routers.teleport-https.entrypoints=websecure"
|
|
# - "traefik.http.routers.teleport-https.rule=HostRegexp(`^(?i)(?:[[:alnum:]]+(?:-+[[:alnum:]]+)*\\.)?your-server-url(?::\\d+)?$`)"
|
|
# - "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
|