🎨 update docker-compose.yml

🎨 update docker-compose.yml
This commit is contained in:
ronger 2023-02-07 14:31:01 +08:00 committed by GitHub
commit 7f83223e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 236 additions and 7 deletions

4
.gitignore vendored
View File

@ -3,6 +3,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar !.mvn/wrapper/maven-wrapper.jar
!**/src/main/** !**/src/main/**
!**/src/test/** !**/src/test/**
!/src/main/resources/application-dev.yml
### STS ### ### STS ###
.apt_generated .apt_generated
@ -33,4 +34,5 @@ build/
### lucene ### ### lucene ###
index index
userDic!/src/main/resources/application-dev.yml userDic

View File

@ -1,7 +1,7 @@
version: '2.1' version: '2.1'
services: services:
redis: redis:
image: redis:5.0.14 image: redis:7.0.8
container_name: forest-ce-redis container_name: forest-ce-redis
sysctls: sysctls:
- net.core.somaxconn=1024 - net.core.somaxconn=1024
@ -13,17 +13,17 @@ services:
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
mysql: mysql:
image: mysql:5.7.8 image: mysql:8.0.29
container_name: forest-ce-mysql container_name: forest-ce-mysql
ports: ports:
- "3306:3306" - "3306:3306"
volumes: volumes:
- "mysql-volume:/etc/mysql/conf.d" - "mysql8-volume:/etc/mysql/conf.d"
- "mysql-volume:/var/lib/mysql" - "mysql8-volume:/var/lib/mysql"
- "mysql-volume:/logs" - "mysql8-volume:/logs"
environment: environment:
- MYSQL_ROOT_PASSWORD=XzHvhX4CDaN696oQAXdmlcsrqgWbkxRl - MYSQL_ROOT_PASSWORD=XzHvhX4CDaN696oQAXdmlcsrqgWbkxRl
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
volumes: volumes:
mysql-volume: mysql8-volume:
redis-volume: redis-volume:

View File

@ -24,6 +24,8 @@ create table forest_article
article_sponsor_count int default 0 null comment '赞赏总数' article_sponsor_count int default 0 null comment '赞赏总数'
) comment '文章表 ' collate = utf8mb4_unicode_ci; ) comment '文章表 ' collate = utf8mb4_unicode_ci;
INSERT INTO forest.forest_article (id, article_title, article_thumbnail_url, article_author_id, article_type, article_tags, article_view_count, article_preview_content, article_comment_count, article_permalink, article_link, created_time, updated_time, article_perfect, article_status, article_thumbs_up_count, article_sponsor_count) VALUES (1, '给新人的一封信', null, 1, '0', '公告,新手信', 3275, '您好,欢迎来到 RYMCU 社区RYMCU 是一个嵌入式知识学习交流平台。RY 取自”容易”的首字母,寓意为让电子设计变得 so easy。新手的疑问初学者都有很多疑问在这里对这些疑问进行一一解答。我英语不好可以学习编程吗对于初学者来说英语不是主要的障碍国内有着充足的中文教程。但在接下来的学习过程中需要阅读大量的英文文档所以还是需要有一些英语基础和理解学习能力配合翻译工具如百度', 0, 'http://localhost:3000/article/1', '/article/1', '2020-01-03 01:27:25', '2022-09-26 15:33:03', '0', '0', 7, 3);
create table forest_article_content create table forest_article_content
( (
id_article bigint not null comment '主键', id_article bigint not null comment '主键',
@ -36,6 +38,231 @@ create table forest_article_content
create index forest_article_content_id_article_index create index forest_article_content_id_article_index
on forest_article_content (id_article); on forest_article_content (id_article);
INSERT INTO forest.forest_article_content (id_article, article_content, article_content_html, created_time, updated_time) VALUES (1, '您好,欢迎来到 RYMCU 社区RYMCU 是一个嵌入式知识学习交流平台。RY 取自”容易”的首字母,寓意为让电子设计变得 so easy。
## 新手的疑问
-
-
-
- 使 IDE Notepad
使 IDE
-
-
便
-
-
-
-
-
-
-
-
## 提问的方法
**使 Debug**
-
-
-
- ( IDE )
- Windows/Linux/MacOS
-
- Github
-
`stm32f103x ` `win10`
[](https://rymcu.com/article/80)
## 自学的方法
-
-
-
- 西
-
-
-
## C 语言基础教程
- [C ](https://doc.yonyoucloud.com/doc/wiki/project/c/c-intro.html)
- [C语言小白变怪兽](http://c.biancheng.net/c/)
## 单片机基础教程
- [51 (Keil4 )](https://rymcu.com/portfolio/42)
- [STM32 ](https://rymcu.com/portfolio/11)
- [51 (VS Code )](https://rymcu.com/portfolio/41)
## 其他教程
- [markdown ](https://rymcu.com/guides/markdown)
- [使](https://rymcu.com/guides/vditor)
## 推荐书籍
- C ( 2 ) [] ·W.Brian W.Kernighan[] ·M.Dennis M.Ritchie
- : [] Z.John Z.Sonmez
- [] Eric S Raymond
- [] Paul Graham
## 愿景
> [RYMCU ](https://rymcu.com/article/115)
## 行为准则
> [](https://rymcu.com/article/20)
## 其他
### 微信公众号
![qrcodeforgh245b3234e782258.jpg](https://static.rymcu.com/article/1642081054095.jpg)
### github
[RYMCU](https://github.com/rymcu)
### gitee
[RYMCU ](https://gitee.com/rymcu-community)
', '<p> RYMCU RYMCU RY so easy</p>
<h2 id="新手的疑问"></h2>
<p></p>
<ul>
<li>
<p><br />
</p>
</li>
<li>
<p><br />
</p>
</li>
<li>
<p><br />
</p>
</li>
<li>
<p>使 IDE Notepad <br />
使 IDE </p>
</li>
<li>
<p><br />
</p>
</li>
<li>
<p><br />
便</p>
</li>
<li>
<p><br />
</p>
<ul>
<li></li>
<li></li>
<li>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id="提问的方法"></h2>
<p><strong>使 Debug</strong></p>
<p></p>
<ul>
<li></li>
<li>
<ul>
<li></li>
<li>( IDE )</li>
<li>Windows/Linux/MacOS </li>
<li></li>
</ul>
</li>
<li> Github</li>
<li></li>
</ul>
<p> <code>stm32f103x </code> <code>win10</code> </p>
<p><a href="https://rymcu.com/article/80"></a></p>
<h2 id="自学的方法"></h2>
<ul>
<li></li>
<li></li>
<li></li>
<li>西</li>
<li></li>
<li></li>
<li></li>
</ul>
<h2 id="C-语言基础教程">C </h2>
<ul>
<li><a href="https://doc.yonyoucloud.com/doc/wiki/project/c/c-intro.html">C </a></li>
<li><a href="http://c.biancheng.net/c/">C </a></li>
</ul>
<h2 id="单片机基础教程"></h2>
<ul>
<li><a href="https://rymcu.com/portfolio/42">51 (Keil4 )</a></li>
<li><a href="https://rymcu.com/portfolio/11">STM32 </a></li>
<li><a href="https://rymcu.com/portfolio/41">51 (VS Code )</a></li>
</ul>
<h2 id="其他教程"></h2>
<ul>
<li><a href="https://rymcu.com/guides/markdown">markdown </a></li>
<li><a href="https://rymcu.com/guides/vditor">使</a></li>
</ul>
<h2 id="推荐书籍"></h2>
<ul>
<li>C ( 2 ) [] ·W.Brian W.Kernighan[] ·M.Dennis M.Ritchie </li>
<li>: [] Z.John Z.Sonmez </li>
<li> [] Eric S Raymond </li>
<li> [] Paul Graham </li>
</ul>
<h2 id="愿景"></h2>
<blockquote>
<p> <a href="https://rymcu.com/article/115">RYMCU </a></p>
</blockquote>
<p></p>
<h2 id="行为准则"></h2>
<blockquote>
<p> <a href="https://rymcu.com/article/20"></a></p>
</blockquote>
<p><br />
</p>
<h2 id="其他"></h2>
<h3 id="微信公众号"></h3>
<p><img src="https://static.rymcu.com/article/1642081054095.jpg" alt="qrcodeforgh245b3234e782258.jpg" /></p>
<h3 id="github">github</h3>
<p><a href="https://github.com/rymcu">RYMCU</a></p>
<h3 id="gitee">gitee</h3>
<p><a href="https://gitee.com/rymcu-community">RYMCU </a></p>
', '2020-01-03 15:27:25', '2022-09-26 15:33:02');
create table forest_article_thumbs_up create table forest_article_thumbs_up
( (
id bigint auto_increment comment '主键' id bigint auto_increment comment '主键'