反馈:solo 博客浏览量九九归一
今天日常 pull 了一下 docker 镜像,然后不知道今天网络是抽风了还是咋了等了半天;等容器重新启动之后,发现文章并没有丢失、但是文章浏览量全部九九归一了、不知道这是不是只是我自己一个人的问题。
docker-compose.yaml
文件
下面是我的 docker-compose.yaml
version: "3"
services:
nginx:
image: nginx:latest
restart: always
ports:
- "80:80"
- "443:443"
depends_on:
- "mysql"
links:
- "solo:solo"
- "php:web-php"
volumes:
- ./nginx/rewrite:/var/www/rewrite:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/conf:/etc/nginx/conf:ro
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf/proxy.conf:/etc/nginx/proxy.conf:ro
- ./nginx/log:/www/wwwlogs:rw
- ./nginx/ssl:/var/www/ssl:rw
- ./web/googlead/ads.txt:/var/www/html/ads.txt:ro
- ./web/picture/favicon.png:/var/www/html/favicon.png:ro
container_name: "solo-nginx"
mysql:
image: mysql:5.5
restart: always
expose:
- "3306"
volumes:
- ./mysql/data:/var/lib/mysql
env_file:
- ./.mysql.env
command: --max_allowed_packet=32505856 --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
container_name: "solo-mysql"
solo:
image: b3log/solo:latest
restart: always
expose:
- "8080"
depends_on:
- "mysql"
- "lute-http"
links:
- "mysql:mysql"
- "lute-http:lute-http"
volumes:
- ./web/markdowns:/opt/solo/markdowns:rw
env_file:
- ./.solo.env
command: --listen_port=8080 --server_scheme=https --server_host=expoli.tech --server_port= --lute_http=http://lute-http:8249
container_name: "solo"
lute-http:
image: b3log/lute-http
restart: always
expose:
- "8249"
container_name: "lute-http"
php:
image: tangcuyu/php:7.2-fpm-mysqli
restart: always
expose:
- "9000"
volumes:
- ./web/:/var/www/html/KodExplorer:rw
container_name: "web-php"
networks:
default:
external:
name: expoli_default_net
后台截图:
第一次启动是 1
再次刷新变成了 0
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于