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.

33 lines
672 B

5 years ago
  1. version: "2"
  2. services:
  3. server:
  4. image: gitea/gitea:1.11.6
  5. environment:
  6. - USER_UID=1000
  7. - USER_GID=1000
  8. - DB_TYPE=mysql
  9. - DB_HOST=db:3306
  10. - DB_NAME=gitea
  11. - DB_USER=gitea
  12. - DB_PASSWD=gitea
  13. restart: always
  14. volumes:
  15. - ./app:/data
  16. ports:
  17. - "3000:3000"
  18. - "222:22"
  19. container_name: openwill-gitea
  20. depends_on:
  21. - db
  22. db:
  23. image: mariadb:10.5.3
  24. restart: always
  25. environment:
  26. - MYSQL_ROOT_PASSWORD=gitea
  27. - MYSQL_USER=gitea
  28. - MYSQL_PASSWORD=gitea
  29. - MYSQL_DATABASE=gitea
  30. container_name: openwill-gitea-db
  31. volumes:
  32. - ./mariadb:/var/lib/mysql