teleport.yaml 820 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. version: '2'
  3. services:
  4. configure:
  5. image: quay.io/gravitational/teleport:4.3
  6. container_name: teleport-configure
  7. entrypoint: /bin/sh
  8. hostname: dev.the-digital-life.com
  9. command: -c "if [ ! -f /etc/teleport/teleport.yaml ]; then teleport configure > /etc/teleport/teleport.yaml; fi"
  10. volumes:
  11. - ./teleport/config:/etc/teleport
  12. teleport:
  13. image: quay.io/gravitational/teleport:4.3
  14. container_name: teleport
  15. entrypoint: /bin/sh
  16. hostname: dev.the-digital-life.com
  17. command: -c "sleep 1 && /bin/dumb-init teleport start -c /etc/teleport/teleport.yaml"
  18. ports:
  19. - "3023:3023"
  20. - "3024:3024"
  21. - "3025:3025"
  22. - "3080:3080"
  23. volumes:
  24. - ./teleport/config:/etc/teleport
  25. - ./teleport/data:/var/lib/teleport
  26. depends_on:
  27. - configure