docker-compose.yml汇总
本文最后更新于23天前,其中的信息可能已经有所发展或是发生改变。

Nginx Proxy Manager

  • docker-compose.yml

    services:
    app:
        image: jc21/nginx-proxy-manager:latest
        restart: unless-stopped
        ports:
        - 80:80
        - 12345:81
        - 443:443
        volumes:
        - ./data:/data
        - ./letsencrypt:/etc/letsencrypt
  • 默认用户名密码:

    Email:    admin@example.com
    Password: changeme

WordPress

  • docker-compose.yml

    services:
    db:
        image: mysql:8.0
        restart: unless-stopped
        command: --max-binlog-size=200M --expire-logs-days=2
        environment:
        MYSQL_DATABASE: wordpress
        MYSQL_USER: wordpress
        MYSQL_PASSWORD: yourpassword
        MYSQL_ROOT_PASSWORD: yourpassword
        volumes:
        - ./db:/var/lib/mysql
        networks:
        - default
    
    app:
        image: wordpress:latest
        restart: unless-stopped
        ports:
        - 12345:80
        environment:
        WORDPRESS_DB_HOST: db
        WORDPRESS_DB_NAME: wordpress
        WORDPRESS_DB_USER: wordpress
        WORDPRESS_DB_PASSWORD: yourpassword
        volumes:
        - ./data:/var/www/html
        - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
        links:
        - db:db
        depends_on:
        - redis
        - db
        networks:
        - default
    
    redis:
        image: redis:alpine
        restart: unless-stopped
        volumes:
        - ./redis:/data
        networks:
        - default
    
    networks:
    default:
        name: wordpress
  • uploads.ini

    file_uploads = On
    upload_max_filesize = 256M
    post_max_size = 256M
  • .htaccess

    php_value max_execution_time 300
    php_value upload_max_filesize 256M
    php_value post_max_size 256M
    php_value memory_limit 128M
    php_value max_input_vars 5000
  • wp-config.php

    找到DB_COLLATEdefine( 'DB_COLLATE', 'XXX...');后添加如下内容:

    /** Redis Object Cache */
    define('WP_REDIS_HOST', 'redis');
    define('WP_REDIS_DATABASE', '0');

Memos

  • docker-compose.yml

    services:
    memos:
        image: neosmemo/memos:0.14.4
        restart: unless-stopped
        ports:
        - 12345:5230
        volumes:
        - ./data:/var/opt/memos
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇