yaml
admin
撰写于 2022年 12月 14 日

version: "3"

networks:
  gitea:
    external: false

services:
  gitea-app:
    image: gitea/gitea:latest
    ulimits:
      nproc: 65535
      nofile:
        soft: 102400
        hard: 102400
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=mysql时从VVC从时测时测时测并VVC时从VVC从时测时从VVC从VVC时测时存储时测时测时测时测时测时测时测时测时测时测时从v
      - GITEA__database__HOST=mysql-server:3306
      - GITEA__database__NAME=git
      - GITEA__database__USER=git
      - GITEA__database__PASSWD=git
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea-data:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "22:22"
    depends_on:
      - mysql-server

  mysql-server:
    image: mysql:8
    restart: always
    cap_add:
      - SYS_NICE  # CAP_SYS_NICE, to prevent mbind error
    environment:
      - MYSQL_ALLOW_EMPTY_PASSWORD=yes
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_USER=git
      - MYSQL_PASSWORD=git
      - MYSQL_DATABASE=git
    networks:
      - gitea
    volumes:
      - ./mysql-data:/var/lib/mysql

yaml

version: "3"

networks:
  gitea:
    external: false

services:
  gitea-app:
    image: gitea/gitea:latest
    ulimits:
      nproc: 65535
      nofile:
        soft: 102400
        hard: 102400
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=mysql时从VVC从时测时测时测并VVC时从VVC从时测时从VVC从VVC时测时存储时测时测时测时测时测时测时测时测时测时测时从v
      - GITEA__database__HOST=mysql-server:3306
      - GITEA__database__NAME=git
      - GITEA__database__USER=git
      - GITEA__database__PASSWD=git
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea-data:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "22:22"
    depends_on:
      - mysql-server

  mysql-server:
    image: mysql:8
    restart: always
    cap_add:
      - SYS_NICE  # CAP_SYS_NICE, to prevent mbind error
    environment:
      - MYSQL_ALLOW_EMPTY_PASSWORD=yes
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_USER=git
      - MYSQL_PASSWORD=git
      - MYSQL_DATABASE=git
    networks:
      - gitea
    volumes:
      - ./mysql-data:/var/lib/mysql


版权属于:admin 所有,采用《知识共享署名-相同方式共享许可协议》进行许可,转载请注明文章来源。

本文链接: https://b3.typecho.ru/index.php/default/102.html

上一篇
后悔了
下一篇
js

猜您想看

评论区(暂无评论)

这里空空如也,快来评论吧~

我要评论