These are some guides for various use.
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.

47 lines
1.0 KiB

  1. version: "2"
  2. networks:
  3. gitea:
  4. external: false
  5. services:
  6. server:
  7. image: gitea/gitea:latest
  8. environment:
  9. - USER_UID=1000
  10. - USER_GID=1000
  11. - DB_TYPE=mysql
  12. - DB_HOST=db:3306
  13. - DB_NAME=gitea
  14. - DB_USER=gitea
  15. - DB_PASSWD=gitea
  16. restart: unless-stopped
  17. networks:
  18. - gitea
  19. volumes:
  20. - data:/data
  21. - /etc/timezone:/etc/timezone:ro
  22. - /etc/localtime:/etc/localtime:ro
  23. ports:
  24. - "3000:3000"
  25. - "222:22"
  26. depends_on:
  27. - db
  28. db:
  29. image: mysql:5.7
  30. restart: unless-stopped
  31. environment:
  32. - MYSQL_ROOT_PASSWORD=gitea
  33. - MYSQL_USER=gitea
  34. - MYSQL_PASSWORD=gitea
  35. - MYSQL_DATABASE=gitea
  36. networks:
  37. - gitea
  38. volumes:
  39. - mysql:/var/lib/mysql
  40. volumes:
  41. data:
  42. driver: local
  43. mysql:
  44. driver: local