docker部署wizard

这里写自定义目录标题

想寻找一个小团队所用的开源Markdown文档协同工具,无意中找到wizard,感觉不错。功能简单,页面简洁,适合我们程序员用的。记录一下部署过程

docker-compose.yml

version: '3.9'
networks:
    custom_bridge:
        external: true
services:
    wizard:
        image: mylxsw/wizard:1.3.1
        container_name: "wizard"
        hostname: "wizard" 
        networks:
            custom_bridge:
        ports:
            - "8080:80"
        restart: "no"
        volumes:
            - ./download:/webroot/storage/app/public
        environment:
            - SET_CONTAINER_TIMEZONE=true
            - CONTAINER_TIMEZONE=Asia/Shanghai
            - DB_HOST=172.19.0.241
            - DB_PORT=3306
            - DB_DATABASE=wizard
            - DB_USERNAME=root
            - DB_PASSWORD=root
            - APP_DEBUG=true

部署步骤

  1. 执行docker compose up -d,生成容器
[root@VM-4-5-centos wizard]# docker-compose up -d
Creating network "wizard_default" with the default driver
Pulling wizard (mylxsw/wizard:1.3.1)...
1.3.1: Pulling from mylxsw/wizard
ae13dd578326: Pull complete
f15d475049bf: Pull complete
886e5161983f: Pull complete
aa7666573a25: Pull complete
59357a0f9863: Pull complete
dc3ffb8c774e: Pull complete
513e9383f6d4: Pull complete
5ebd0737aa08: Pull complete
255df6c25392: Pull complete
f2994be86066: Pull complete
746eb0cc36a4: Pull complete
e46201569d4f: Pull complete
e05ec73939b3: Pull complete
a1488be2aff6: Pull complete
721fc7d7a7ae: Pull complete
f66b719ae762: Pull complete
669cff49da8d: Pull complete
8b6e659e70e3: Pull complete
b64123c99f2c: Pull complete
c077d455fd8d: Pull complete
321c2e7b579f: Pull complete
e61a28442a9c: Pull complete
bf7dfe673c23: Pull complete
c9d85ec3e6fb: Pull complete
6bb13a9fd865: Pull complete
4d5615971791: Pull complete
e49873713d12: Pull complete
Digest: sha256:d9c0dfcc7518e63e6e437a5c81c5e9c614ea3012f9c55412595f025d93c81f49
Status: Downloaded newer image for mylxsw/wizard:1.3.1
Creating wizard ... done

  1. 进入容器内,按顺序执行php artisan migrate:installphp artisan migrate初始化数据库
[root@VM-4-5-centos wizard]# docker exec -it wizard bash
root@wizard:/webroot# php artisan migrate:install
Migration table created successfully.
root@wizard:/webroot# php artisan migrate
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes

Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table (0.06 seconds)
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table (0.05 seconds)
Migrating: 2017_07_31_012730_create_project_table
Migrated:  2017_07_31_012730_create_project_table (0.03 seconds)
Migrating: 2017_07_31_013758_create_page_table
Migrated:  2017_07_31_013758_create_page_table (0.03 seconds)
Migrating: 2017_08_01_151100_create_page_history_table
Migrated:  2017_08_01_151100_create_page_history_table (0.03 seconds)
Migrating: 2017_08_03_232417_create_operation_logs_table
Migrated:  2017_08_03_232417_create_operation_logs_table (0.03 seconds)
Migrating: 2017_08_04_143640_create_template_table
Migrated:  2017_08_04_143640_create_template_table (0.03 seconds)
Migrating: 2017_08_06_115558_create_group_table
Migrated:  2017_08_06_115558_create_group_table (0.03 seconds)
Migrating: 2017_08_06_120713_create_user_group_ref_table
Migrated:  2017_08_06_120713_create_user_group_ref_table (0.03 seconds)
Migrating: 2017_08_06_122310_update_user_table
Migrated:  2017_08_06_122310_update_user_table (0.03 seconds)
Migrating: 2017_08_06_124106_create_project_group_ref_table
Migrated:  2017_08_06_124106_create_project_group_ref_table (0.03 seconds)
Migrating: 2017_08_10_093939_create_categories_table
Migrated:  2017_08_10_093939_create_categories_table (0.03 seconds)
Migrating: 2017_08_11_171545_create_share_table
Migrated:  2017_08_11_171545_create_share_table (0.06 seconds)
Migrating: 2017_08_17_224954_create_comments_table
Migrated:  2017_08_17_224954_create_comments_table (0.03 seconds)
Migrating: 2017_08_18_133716_create_attachments_table
Migrated:  2017_08_18_133716_create_attachments_table (0.03 seconds)
Migrating: 2017_08_19_002350_create_notifications_table
Migrated:  2017_08_19_002350_create_notifications_table (0.09 seconds)
Migrating: 2017_09_19_174315_modify_operation_logs
Migrated:  2017_09_19_174315_modify_operation_logs (0.03 seconds)
Migrating: 2017_09_24_145801_modify_user_table
Migrated:  2017_09_24_145801_modify_user_table (0.03 seconds)
Migrating: 2018_01_27_150601_modify_project_table
Migrated:  2018_01_27_150601_modify_project_table (0.03 seconds)
Migrating: 2018_04_11_172516_create_project_catalogs_table
Migrated:  2018_04_11_172516_create_project_catalogs_table (0.03 seconds)
Migrating: 2018_04_11_172816_modify_project_add_catalog
Migrated:  2018_04_11_172816_modify_project_add_catalog (0.03 seconds)
Migrating: 2018_04_12_143655_create_project_star_table
Migrated:  2018_04_12_143655_create_project_star_table (0.03 seconds)
Migrating: 2018_05_10_105015_create_tags_table
Migrated:  2018_05_10_105015_create_tags_table (0.05 seconds)
Migrating: 2018_05_10_105629_create_page_tag_table
Migrated:  2018_05_10_105629_create_page_tag_table (0.09 seconds)
Migrating: 2018_12_11_164112_add_sort_to_nav
Migrated:  2018_12_11_164112_add_sort_to_nav (0.03 seconds)
Migrating: 2018_12_11_164721_add_sort_to_nav_history
Migrated:  2018_12_11_164721_add_sort_to_nav_history (0.03 seconds)
Migrating: 2019_04_20_141850_add_sync_to_pages
Migrated:  2019_04_20_141850_add_sync_to_pages (0.03 seconds)
Migrating: 2019_04_20_141934_add_sync_filed_to_page_histories
Migrated:  2019_04_20_141934_add_sync_filed_to_page_histories (0.03 seconds)
Migrating: 2019_04_27_214733_add_objectguid_column
Migrated:  2019_04_27_214733_add_objectguid_column (0.03 seconds)
Migrating: 2019_08_09_115948_optimize_pages
Migrated:  2019_08_09_115948_optimize_pages (0.03 seconds)
Migrating: 2019_08_09_120209_optimize_page_histories
Migrated:  2019_08_09_120209_optimize_page_histories (0.03 seconds)
Migrating: 2019_08_09_120318_optimize_project_stars
Migrated:  2019_08_09_120318_optimize_project_stars (0.03 seconds)
Migrating: 2019_08_09_120748_optimize_attachments
Migrated:  2019_08_09_120748_optimize_attachments (0.03 seconds)
Migrating: 2019_11_13_103848_add_show_in_home_to_catalogs
Migrated:  2019_11_13_103848_add_show_in_home_to_catalogs (0.03 seconds)
Migrating: 2019_12_31_115014_create_widget_table
Migrated:  2019_12_31_115014_create_widget_table (0.06 seconds)
Migrating: 2020_10_10_180119_create_page_score
Migrated:  2020_10_10_180119_create_page_score (0.05 seconds)
Migrating: 2021_03_04_114106_invitation_code
Migrated:  2021_03_04_114106_invitation_code (0.05 seconds)
Migrating: 2021_03_29_133806_add_project_menu_control
Migrated:  2021_03_29_133806_add_project_menu_control (0.03 seconds)
root@wizard:/webroot# exit

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值