尊龙凯时人生就是博

ÔõÑùʹÓÃDocker°²ÅÅGitee¸ßУ°æ

Ëæ×Å¿ªÔ´µÄÆÕ¼°Ë®Æ½Ô½À´Ô½¸ß £¬Ô½À´Ô½¶àµÄÖÐСÆóÒµ¡¢Ð¡ÎÒ˽ÈËÒÔ¼°¸ßУ×îÏÈÑ¡ÔñʹÓÃgiteeÀ´ÖÎÀíËûÃǵÄÏîÄ¿¡£ÎªÁ˸üºÃµØÖª×ã¸ßУÓû§µÄÐèÇó £¬giteeÒ²ÍƳöÁËgitee¸ßУ°æ¡£ÄÇô £¬gitee¸ßУ°æÔõÑù°²ÅÅÄØ£¿½ÓÏÂÀ´ £¬±¾ÎĽ«Îª¸÷ÈËÏÈÈÝÔõÑùÔÚlinuxÇéÐÎÏ £¬Ê¹ÓÃdocker°²ÅÅgitee¸ßУ°æ¡£

Ò»¡¢×¼±¸ÊÂÇé

1.×°ÖÃDockerºÍDocker-Compose¹¤¾ß

Ê×ÏÈ×°ÖÃDockerºÍDocker-Compose¹¤¾ß £¬Docker-ComposeÓÃÓÚÔÚÈÝÆ÷Ö®¼ä½¨ÉèÁªÏµºÍÒÀÀµ¹Øϵ £¬Ê¹µÃÈÝÆ÷¿ÉÒÔÏ໥ͨѶ¡£ÔÚ×°ÖÃDockerºó £¬¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁî×°ÖÃDocker-Compose£º

sudo apt-get install docker-compose

µÇ¼ºó¸´ÖÆ

2.ÉèÖÃGitee¸ßУ°æ

ÔÚ×°ÖÃDockerºÍDocker-Compose¹¤¾ßºó £¬ÐèÒª½¨Éè²¢ÉèÖÃGitee¸ßУ°æµÄÏà¹ØÉèÖÃÎļþ¡£½«ÒÔÏÂÄÚÈÝÉúÑĵ½ÃûΪgitee.envµÄÎļþÖУº

## Gitee setting
PRIVATE_TOKEN=´Ë´¦ÌîÈëÄãµÄ˽ÈËÁîÅÆ
CUSTOM_URL=´Ë´¦ÌîÈëÄãµÄÓòÃû£¨ÈôÊÇÓУ©
ENABLE_LDAP=false #ÉèÖÃΪtrueÆôÓÃLDAPЧÀÍ
LDAP_SERVER=ldap://localhost:389 #LDAPЧÀ͵صã
LDAP_UID=admin #LDAPbinddnÓû§Ãû
LDAP_PWD=admin #LDAPbinddnÃÜÂë
LDAP_SEARCH_DN='cn=xxx,dc=xxx,dc=xxx' #ÐÞ¸ÄΪÏìÓ¦µÄLDAP_SEARCH_DN
LDAP_ATTRS=['uidNumber','gidNumber','homeDirectory'] #ƾ֤ÐèÒª¸ü¸ÄLDAP_ATTRS
EXTERNAL_URL=http://localhost #ÐÞ¸ÄΪÏìÓ¦µÄµØµã

µÇ¼ºó¸´ÖÆ

¶þ¡¢½¨ÉèÊý¾Ý¾í

1.½¨ÉèGitee¸ßУ°æÐèÒªµÄÊý¾Ý¾í

docker volume create gitee-data
docker volume create gitee-db
docker volume create gitee-redis

µÇ¼ºó¸´ÖÆ

2.ÉèÖÃÊý¾Ý¾íµÄ»á¼ûȨÏÞ

sudo chmod -R 777 /var/lib/docker/volumes/gitee-data
sudo chmod -R 777 /var/lib/docker/volumes/gitee-db
sudo chmod -R 777 /var/lib/docker/volumes/gitee-redis

µÇ¼ºó¸´ÖÆ

Èý¡¢Æô¶¯Gitee¸ßУ°æ

1.½¨Éèdocker-compose.ymlÎļþ

ÔÚÏîÄ¿µÄ¸ùĿ¼Ï½¨Éèdocker-compose.ymlÎļþ £¬½«ÒÔÏÂÄÚÈÝÉúÑĵ½ÎļþÖУº

version : '2'

services:
  gitee:
    image: giteegroup/gitee-ce:11.0.3-20200528205614
    restart: always
    volumes:
      - gitee-data:/data/gitee/data
      - gitee-redis:/data/gitee/redis
      - gitee-db:/data/gitee/mysql
    environment:
      - CUSTOM_URL=$CUSTOM_URL
      - PRIVATE_TOKEN=$PRIVATE_TOKEN
      - EXTERNAL_URL=$EXTERNAL_URL
      - ENABLE_LDAP=$ENABLE_LDAP
      - LDAP_SERVER=$LDAP_SERVER
      - LDAP_UID=$LDAP_UID
      - LDAP_PWD=$LDAP_PWD
      - LDAP_SEARCH_DN=$LDAP_SEARCH_DN
      - LDAP_ATTRS=$LDAP_ATTRS
    ports:
      - '10022:22'
      - '80:80'
      - '443:443'
    networks:
      - gitee-net

networks:
  gitee-net:

volumes:
  gitee-data:
  gitee-db:
  gitee-redis:

µÇ¼ºó¸´ÖÆ

2.ÔËÐÐdocker-compose

docker-compose -f docker-compose.yml up -d

µÇ¼ºó¸´ÖÆ

3.ÆÚ´ýGitee¸ßУ°æÆô¶¯Íê³É

×îºó £¬ÆÚ´ýGitee¸ßУ°æÆô¶¯Íê³É £¬»á¼ûÄãµÄÓòÃû¼´¿É½øÈëGitee¸ßУ°æµÄÖÎÀíÒ³Ãæ¡£

×ܽá

ͨ¹ýÒÔÉÏ°ì·¨ £¬ÎÒÃǾͿÉÒÔÔÚLinuxÇéÐÎÏ £¬Ê¹ÓÃDocker°²ÅÅGitee¸ßУ°æ £¬Àû±ãµØÖÎÀíÎÒÃǵÄÏîÄ¿¡£Í¬Ê± £¬Gitee¸ßУ°æÒ²ÌṩÁËLDAPЧÀÍ £¬Ê¹µÃ¸ßУÓû§¿ÉÒÔʹÓÃ×Ô¼ºµÄÕ˺žÙÐеǼºÍÈÏÖ¤¡£Ï£ÍûÉÏÊöÄÚÈÝ¿ÉÒÔ×ÊÖúµ½¸÷ÈË £¬Ð»Ð»ÔĶÁ£¡

ÒÔÉϾÍÊÇÔõÑùʹÓÃDocker°²ÅÅGitee¸ßУ°æµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是博ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是博ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是博

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ