Self-hosted full-stack Gitea service designed for use with Traefik. https://habd.as/code/high-tea/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 820B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: "2.1"
  2. services:
  3. gitea:
  4. image: gitea/gitea:1.6
  5. depends_on:
  6. db:
  7. condition: service_healthy
  8. environment:
  9. - USER_UID=1000
  10. - USER_GID=1000
  11. restart: always
  12. networks:
  13. - web
  14. - default
  15. volumes:
  16. - /opt/gitea:/data
  17. expose:
  18. - "3000"
  19. ports:
  20. - "2222:22"
  21. labels:
  22. - "traefik.docker.network=web"
  23. - "traefik.enable=true"
  24. - "traefik.frontend.rule=Host:git.example.com"
  25. - "traefik.port=3000"
  26. - "traefik.protocol=http"
  27. db:
  28. image: postgres:9.6
  29. restart: always
  30. environment:
  31. - POSTGRES_USER=gitea
  32. - POSTGRES_PASSWORD=gitea
  33. - POSTGRES_DB=gitea
  34. volumes:
  35. - /opt/postgres:/var/lib/postgresql/data
  36. healthcheck:
  37. test: "exit 0"
  38. networks:
  39. web:
  40. external: true