christianlempa-boilerplates/docker-compose/teleport/docker-compose.yaml

35 lines
1.4 KiB
YAML
Raw Normal View History

2023-05-25 14:26:13 +02:00
---
2023-08-16 11:28:44 +02:00
# -- (Optional) When using Traefik, use this section
# networks:
# your-traefik-network:
# external: true
2022-08-30 19:01:48 +02:00
services:
teleport:
image: public.ecr.aws/gravitational/teleport-distroless:16
2022-08-30 19:01:48 +02:00
container_name: teleport
ports:
2023-08-16 11:28:44 +02:00
# -- (Optional) Remove this section, when using Traefik
2023-07-25 13:18:42 +02:00
- "3080:3080"
- "3023:3023"
- "3024:3024"
- "3025:3025"
2022-08-30 19:01:48 +02:00
volumes:
2023-07-25 13:18:42 +02:00
- ./config:/etc/teleport
- ./data:/var/lib/teleport
2023-08-16 12:15:47 +02:00
# -- (Optional) Traefik example configuration
# labels:
2023-08-09 10:39:13 +02:00
# - "traefik.enable=true"
2023-08-16 11:28:44 +02:00
# - "traefik.http.services.teleport.loadbalancer.server.port=3080"
# - "traefik.http.services.teleport.loadbalancer.server.scheme=https"
# - "traefik.http.routers.teleport-http.entrypoints=web"
2024-05-26 10:24:00 +02:00
# - "traefik.http.routers.teleport-http.rule=Host(`your-server-url`) || HostRegexp(`{subhost:[a-z]+}.your-server-url`)"
2023-08-16 11:28:44 +02:00
# - "traefik.http.routers.teleport-https.entrypoints=websecure"
2024-05-26 10:24:00 +02:00
# - "traefik.http.routers.teleport-https.rule=HostHost(`your-server-url`) || HostRegexp(`{subhost:[a-z]+}.your-server-url`)"
2023-08-16 11:28:44 +02:00
# - "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"
2023-08-16 12:15:47 +02:00
# networks:
# - your-traefik-network
2023-08-16 11:28:44 +02:00
restart: unless-stopped