miller
发布于

docker confluence搭建 WIKI

用一体化方案 https://github.com/haxqer/confluence

TIPS

  1. 数据库必须 'read-committed',多人协作文档。 而这个是针对实例的。所以得新建mysql 实例
  2. mbind: Operation not permitted 这种报错。添加下面这个security_opt
  3. 如果用本地目录 而不是volumes. 修改./home_data
  4. 如果重建某个服务 如mysql. (不是container name )
    启动后,想迁移目录,改端口等 用这种。改完docker-compose.yaml 再重建

docker-compose up -d --no-deps --force-recreate mysql

  1. 能支持正版就支持正版
  2. ldap 还没尝试 https://www.cnblogs.com/91donkey/p/14767798.html
  3. https://www.dqzboy.com/1575.html
  4. 查看serverid {CONFLUENCE_HOME}\confluence.cfg.xml
    xxxxxxxxxxx
version: '3.4'
services:
  confluence:
    image: haxqer/confluence:8.9.4
    container_name: confluence-srv
    environment:
      - TZ=Asia/Shanghai
    #      - JVM_MINIMUM_MEMORY=1g
    #      - JVM_MAXIMUM_MEMORY=12g
    #      - JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=1g -XX:ReservedCodeCacheSize=8g'
    depends_on:
      - mysql
    ports:
      - "8090:8090"
    volumes:
      - ./home_data:/var/confluence
    restart: always
    networks:
      - network-bridge

  mysql:
    image: mysql:8.0
    container_name: mysql-confluence
    security_opt:
      - seccomp:unconfined
    ports:
      - "3306:3306"
    environment:
      - TZ=Asia/Shanghai
      - MYSQL_DATABASE=confluence
      - MYSQL_ROOT_PASSWORD=123456
      - MYSQL_USER=confluence
      - MYSQL_PASSWORD=123123
    command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_bin', '--transaction-isolation=READ-COMMITTED', '--innodb_log_file_size=256M', '--max_allowed_packet=256M','--log_bin_trust_function_creators=1']
    volumes:
      - ./mysql_data:/var/lib/mysql
    restart: always
    networks:
      - network-bridge

networks:
  network-bridge:
    driver: bridge
# 用本地目录
#volumes:
 # home_data:
 #   external: false
 # mysql_data:
 #   external: false

浏览 (156)
点赞
收藏
评论