docker-compose.yml 711 B

1234567891011121314151617181920212223242526272829
  1. version: '2.2'
  2. volumes:
  3. ssh_host_keys:
  4. gitolite_home:
  5. services:
  6. sshd:
  7. build: .
  8. image: docker.io/fphammerle/gitolite
  9. container_name: gitolite
  10. environment:
  11. GITOLITE_INITIAL_ADMIN_NAME: admin
  12. GITOLITE_USER_PUBLIC_KEY_admin: ssh-rsa ...
  13. #GITOLITE_USER_PUBLIC_KEY_alice: ssh-rsa ...
  14. #GITOLITE_USER_PUBLIC_KEY_bob: ssh-rsa ...
  15. read_only: true
  16. volumes:
  17. - ssh_host_keys:/etc/ssh/host_keys:rw
  18. - gitolite_home:/var/lib/gitolite:rw
  19. ports:
  20. - '127.0.0.1:2200:2200'
  21. cap_drop: [ALL]
  22. security_opt: [no-new-privileges]
  23. # docker-compose >=2.2,<3
  24. cpus: 0.8
  25. mem_limit: 256M
  26. # https://docs.docker.com/compose/compose-file/compose-file-v2/